This commit is contained in:
Charles 2001-04-25 19:52:35 +00:00
parent e91b911639
commit a96fa4bb92
4 changed files with 40 additions and 18 deletions

View file

@ -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;
}
}
}
/*----------------------------------------------------------------------