This commit is contained in:
parent
e91b911639
commit
a96fa4bb92
4 changed files with 40 additions and 18 deletions
|
@ -254,6 +254,23 @@ void CThingManager::thinkAllThings(int _frames)
|
|||
thing1 = thing1->m_nextThing;
|
||||
}
|
||||
|
||||
for(i=0;i<CThing::MAX_TYPE;i++)
|
||||
{
|
||||
thing=s_thingLists[i];
|
||||
CThing *nextThing = thing;
|
||||
while(thing)
|
||||
{
|
||||
nextThing=thing->m_nextThing;
|
||||
|
||||
if ( thing->isSetToShutdown() )
|
||||
{
|
||||
thing->shutdown();
|
||||
delete thing;
|
||||
}
|
||||
|
||||
thing = nextThing;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue