From: Keith F. <ven...@us...> - 2002-07-27 15:09:50
|
Update of /cvsroot/planeshift/planeshift/src/server In directory usw-pr-cvs1:/tmp/cvs-serv7331 Modified Files: spawnmanager.cpp Log Message: Removal of items in spawnmanager. Index: spawnmanager.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/spawnmanager.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** spawnmanager.cpp 14 Jul 2002 03:36:07 -0000 1.7 --- spawnmanager.cpp 27 Jul 2002 15:09:47 -0000 1.8 *************** *** 152,156 **** database->UpdateAliveInd(pid,"N",spawnruleid); - // Notify clients to remove dead entity iPcProximityList* proxlist = --- 152,155 ---- *************** *** 160,163 **** --- 159,163 ---- return; + proxlist->DecRef(); psDisconnectMessage msg(0, entity->GetID()); *************** *** 168,172 **** printf("Sending NPC %d disconnect msg to %d clients.\n",entity->GetID(),proxlist->GetClients().Length()); - proxlist->DecRef(); // Queue for respawn according to rules --- 168,171 ---- *************** *** 182,185 **** --- 181,187 ---- return; } + + // Remove mesh, etc from engine + celserver->RemoveActor(entity); csVector3 pos; |