- 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.
This commit is contained in:
Christoph Oelckers 2020-08-23 20:55:21 +02:00
parent 7417160abd
commit c0da85d0ff

View file

@ -712,6 +712,7 @@ void EndOfLevel()
if (FinishedLevel) if (FinishedLevel)
{ {
//ResetPalette(mpp); //ResetPalette(mpp);
FinishedLevel = false;
COVER_SetReverb(0); // Reset reverb COVER_SetReverb(0); // Reset reverb
Player[myconnectindex].Reverb = 0; Player[myconnectindex].Reverb = 0;
StopSound(); StopSound();
@ -857,6 +858,7 @@ void GameInterface::RunGameFrame()
SavegameLoaded = false; SavegameLoaded = false;
ExitLevel = false; ExitLevel = false;
FinishAnim = 0; FinishAnim = 0;
FinishedLevel = false;
throw; throw;
} }