1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

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.
This commit is contained in:
Misa 2024-01-10 00:19:16 -08:00
parent 67df8a9679
commit 5e28567009

View file

@ -6199,6 +6199,13 @@ void Game::returnmenu(void)
{ {
music.fadeout(); 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]; MenuStackFrame& frame = menustack[menustack.size()-1];