This commit is contained in:
parent
99e98162fe
commit
77bbfc2c16
7 changed files with 233 additions and 148 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue