From: Manuel A. F. M. <ma...@us...> - 2005-01-19 22:19:45
|
Update of /cvsroot/once/oncecode/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24268/src/server Modified Files: ocworld.cpp Log Message: Show a nice error instead of crashing Index: ocworld.cpp =================================================================== RCS file: /cvsroot/once/oncecode/src/server/ocworld.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** ocworld.cpp 8 Jan 2005 00:58:10 -0000 1.36 --- ocworld.cpp 19 Jan 2005 22:19:24 -0000 1.37 *************** *** 84,88 **** pcregion = CEL_QUERY_PROPCLASS_ENT(entity, iPcRegion); pcregion->SetRegionName(name); ! serversys->GetLoader()->LoadRegion(pcregion); prop = CEL_QUERY_PROPCLASS_ENT(entity, iPcStaticProperties); --- 84,90 ---- pcregion = CEL_QUERY_PROPCLASS_ENT(entity, iPcRegion); pcregion->SetRegionName(name); ! bool success = serversys->GetLoader()->LoadRegion(pcregion); ! if (!success) ! return 0; prop = CEL_QUERY_PROPCLASS_ENT(entity, iPcStaticProperties); |