From b67386894cc41f257b7583406f721f28133c8490 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 17 Dec 2021 23:39:26 -0800 Subject: [PATCH] `hardreset`: Reset `ingame_titlemode` You'll note that getting in to the glitchy state of the game (the state where you could play the game after it had hardreset() called on it) required the player to quit to menu with ingame_titlemode set to true. Well, quitting to menu calls hardreset(). So if hardreset() is called when quitting, then you can no longer preserve ingame_titlemode that way. This is a bit overkill, but I'm just taking precautions. --- desktop_version/src/Script.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 241ff566..e1c6ae79 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -3204,6 +3204,8 @@ void scriptclass::hardreset(void) game.disabletemporaryaudiopause = true; + game.ingame_titlemode = false; + //dwgraphicsclass graphics.backgrounddrawn = false; graphics.textboxes.clear();