Skip to content

Commit

Permalink
- fixed: "Dialogue" in MAPINFO must clear all "AddDialogues" that cam…
Browse files Browse the repository at this point in the history
…e before.
  • Loading branch information
coelckers committed Sep 17, 2021
1 parent 08baad6 commit 2350780
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gamedata/gi.cpp
Expand Up @@ -356,6 +356,12 @@ void FMapInfoParser::ParseGameInfo()
}
else gameinfo.mCheatMapArrow = "";
}
else if (nextKey.CompareNoCase("dialogue") == 0)
{
sc.MustGetToken(TK_StringConst);
gameinfo.Dialogue = sc.String;
gameinfo.AddDialogues.Clear();
}
// Insert valid keys here.
GAMEINFOKEY_STRING(mCheatKey, "cheatKey")
GAMEINFOKEY_STRING(mEasyKey, "easyKey")
Expand Down Expand Up @@ -437,7 +443,6 @@ void FMapInfoParser::ParseGameInfo()
GAMEINFOKEY_FONT(mStatscreenAuthorFont, "statscreen_authorfont")
GAMEINFOKEY_BOOL(norandomplayerclass, "norandomplayerclass")
GAMEINFOKEY_BOOL(forcekillscripts, "forcekillscripts") // [JM] Force kill scripts on thing death. (MF7_NOKILLSCRIPTS overrides.)
GAMEINFOKEY_STRING(Dialogue, "dialogue")
GAMEINFOKEY_STRINGARRAY(AddDialogues, "adddialogues", 0, false)
GAMEINFOKEY_STRING(statusscreen_single, "statscreen_single")
GAMEINFOKEY_STRING(statusscreen_coop, "statscreen_coop")
Expand Down

0 comments on commit 2350780

Please sign in to comment.