- 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
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue