From f78603ef87128c72d3ae433ce86c76b739096f00 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 2 May 2020 20:38:06 -0700 Subject: [PATCH] Fix menu that you land on when you complete game or custom level When you complete the game, you're now redirected to the play menu. This is because your quicksave will have been deleted so you can't go back to the summary menu. When you complete a custom level, you'll go back to the levels list, in case you started the level from a quicksave. --- desktop_version/src/Game.cpp | 1 + desktop_version/src/Logic.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 7f067cad..40bc6895 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -2105,6 +2105,7 @@ void Game::updatestate() if(!muted && ed.levmusic>0) music.fadeMusicVolumeIn(3000); } graphics.showcutscenebars = false; + returntomenu(Menu::levellist); break; #endif case 1014: diff --git a/desktop_version/src/Logic.cpp b/desktop_version/src/Logic.cpp index de9fe1cb..34ca6d3a 100644 --- a/desktop_version/src/Logic.cpp +++ b/desktop_version/src/Logic.cpp @@ -109,6 +109,7 @@ void gamecompletelogic2() game.gamestate = TITLEMODE; graphics.fademode = 4; music.playef(18); + game.returntomenu(Menu::play); game.createmenu(Menu::gamecompletecontinue); map.nexttowercolour(); }