From c0da85d0ff70999d0c4ecda8608a34a6a65a1bdf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 23 Aug 2020 20:55:21 +0200 Subject: [PATCH] - SW: fixed: When entering the summary screen, clear the FinishedLevel variable immediately. So that its value won't stick around and trigger the screen again. Same when an exception occurs. Fixes #232. --- source/sw/src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 8f9e48da5..6998f822d 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -712,6 +712,7 @@ void EndOfLevel() if (FinishedLevel) { //ResetPalette(mpp); + FinishedLevel = false; COVER_SetReverb(0); // Reset reverb Player[myconnectindex].Reverb = 0; StopSound(); @@ -857,6 +858,7 @@ void GameInterface::RunGameFrame() SavegameLoaded = false; ExitLevel = false; FinishAnim = 0; + FinishedLevel = false; throw; }