- Moved Strife conversation data into FLevelLocals.

This commit is contained in:
Christoph Oelckers 2019-01-09 02:03:26 +01:00
commit 0a6b6173de
10 changed files with 91 additions and 82 deletions

View file

@ -263,6 +263,16 @@ void FLevelLocals::ClearLevelData()
total_monsters = total_items = total_secrets =
killed_monsters = found_items = found_secrets =
wminfo.maxfrags = 0;
FStrifeDialogueNode *node;
while (StrifeDialogues.Pop (node))
{
delete node;
}
DialogueRoots.Clear();
ClassRoots.Clear();
// delete allocated data in the level arrays.
if (sectors.Size() > 0)
@ -342,7 +352,6 @@ void P_FreeLevelData ()
SN_StopAllSequences ();
DThinker::DestroyAllThinkers ();
P_FreeStrifeConversations ();
level.ClearLevelData();
}