From 5e285670096b29fc19402deb85a35b3689527fd7 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 10 Jan 2024 00:19:16 -0800 Subject: [PATCH] Fix pressing ESC in some menus not playing music This fixes a bug where pressing Escape in the following menus would not play Presenting VVVVVV (the title screen music) and would instead leave you with silence: Game Complete, Time Trial complete, Game Over, and No Death Mode complete. --- desktop_version/src/Game.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 70254b10..60751186 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -6199,6 +6199,13 @@ void Game::returnmenu(void) { music.fadeout(); } + else if (currentmenuname == Menu::gamecompletecontinue + || currentmenuname == Menu::timetrialcomplete3 + || currentmenuname == Menu::gameover2 + || currentmenuname == Menu::nodeathmodecomplete2) + { + music.play(Music_PRESENTINGVVVVVV); + } MenuStackFrame& frame = menustack[menustack.size()-1];