- refactored the thinker list.
This was an unorganized set of static members in DThinker but has now been regrouped into something more structured.
This commit is contained in:
parent
e30f116faf
commit
3b4ded5694
11 changed files with 508 additions and 470 deletions
|
|
@ -349,7 +349,7 @@ void P_FreeLevelData ()
|
|||
E_Shutdown(true);
|
||||
R_FreePastViewers();
|
||||
|
||||
DThinker::DestroyAllThinkers ();
|
||||
Thinkers.DestroyAllThinkers ();
|
||||
|
||||
level.ClearLevelData();
|
||||
}
|
||||
|
|
@ -573,8 +573,8 @@ void P_Init ()
|
|||
}
|
||||
|
||||
static void P_Shutdown ()
|
||||
{
|
||||
DThinker::DestroyThinkersInList(STAT_STATIC);
|
||||
{
|
||||
Thinkers.DestroyThinkersInList(STAT_STATIC);
|
||||
P_FreeLevelData ();
|
||||
// [ZZ] delete global event handlers
|
||||
E_Shutdown(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue