From 9458529e94ec3135a5a6fa0fbaf7e0ce1459168b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 20 Mar 2022 08:44:01 -0400 Subject: fixed bug that restarts game & doubles music if you press esc while fading in --- src/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index caa465c..a3aa7be 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -749,7 +749,9 @@ void Game::updatePlaying(size_t frameTime) { { case SDLK_ESCAPE: { - if (losing != LoseState::None) + if (losing == LoseState::NewGame) { + // Do nothing. + } else if (losing != LoseState::None) { if (quitting) { quit = true; -- cgit 1.4.1