- 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

@ -469,7 +469,7 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
UnlatchCVars ();
G_VerifySkill();
UnlatchCVars ();
DThinker::DestroyThinkersInList(STAT_STATIC);
Thinkers.DestroyThinkersInList(STAT_STATIC);
if (paused)
{
@ -1466,7 +1466,7 @@ int FLevelLocals::FinishTravel ()
// make sure that, after travelling has completed, no travelling thinkers are left.
// Since this list is excluded from regular thinker cleaning, anything that may survive through here
// will endlessly multiply and severely break the following savegames or just simply crash on broken pointers.
DThinker::DestroyThinkersInList(STAT_TRAVELLING);
Thinkers.DestroyThinkersInList(STAT_TRAVELLING);
return failnum;
}