- 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:
Christoph Oelckers 2019-01-30 02:15:48 +01:00
commit 3b4ded5694
11 changed files with 508 additions and 470 deletions

View file

@ -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);