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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
|
|
@ -101,6 +101,7 @@ public:
|
|||
virtual void shutdown();
|
||||
virtual void think(int _frames);
|
||||
virtual void render();
|
||||
virtual u8 isSetToShutdown() {return( false );}
|
||||
|
||||
// Linkage
|
||||
void addChild(CThing *Child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue