This commit is contained in:
Paul 2001-05-04 19:34:09 +00:00
parent 99e98162fe
commit 77bbfc2c16
7 changed files with 233 additions and 148 deletions

View file

@ -97,6 +97,32 @@ void CThingManager::shutdown()
s_initialised=false;
}
/*----------------------------------------------------------------------
Function:
Purpose: Kills every CThing except the player
Params:
Returns:
---------------------------------------------------------------------- */
void CThingManager::killAllThingsForRespawn()
{
int i;
CThing *thing;
ASSERT(s_initialised);
for(i=0;i<CThing::MAX_TYPE;i++)
{
if(i!=CThing::TYPE_PLAYER)
{
while(s_thingLists[i])
{
thing=s_thingLists[i];
thing->shutdown();
delete thing;
}
}
}
}
/*----------------------------------------------------------------------
Function:
Purpose: