- initiate a proper game state reset when ending an episode.

Fixes #207.
This commit is contained in:
Christoph Oelckers 2020-08-18 20:56:18 +02:00
parent 6eba7dc410
commit 57cdcda253

View file

@ -643,7 +643,8 @@ void ProcessFrame(void)
M_SetMenu(NAME_CreditsMenu); M_SetMenu(NAME_CreditsMenu);
gGameOptions.uGameFlags &= ~3; gGameOptions.uGameFlags &= ~3;
gQuitGame = 1; gQuitGame = 1;
}; gRestartGame = true;
};
if (gGameOptions.uGameFlags&8) if (gGameOptions.uGameFlags&8)
{ {
@ -904,7 +905,8 @@ static void commonTicker(bool &playvideo)
playvideo = !bQuickStart; playvideo = !bQuickStart;
} }
else playvideo = false; else playvideo = false;
gamestate = GS_STARTUP; // Don't switch to startup if we're already outside the game.
if (gamestate == GS_LEVEL) gamestate = GS_STARTUP;
} }
} }