1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 02:53:32 +02:00

Fix incorrect return code from game options and graphic options

Pressing return in gameplay options would send you back to the pause
menu instead of the general options menu, and pressing return in graphic
options would send you back to the pause menu instead of the general
options menu, too. Additionally, pressing Esc in graphic options would
also send you back to the pause menu instead of the general options
menu.

Like I said before, the menu system is still a bit hardcoded in some
places, and these happened because Terry forgot to update them when he
changed the menus around.

Fixes #711.
This commit is contained in:
Misa 2021-04-11 13:52:35 -07:00 committed by Ethan Lee
parent d89ce76577
commit eb9d3582d8

View File

@ -447,15 +447,8 @@ static void menuactionpress(void)
default:
//back
music.playef(11);
if (game.ingame_titlemode)
{
game.returntoingame();
}
else
{
game.returnmenu();
map.nexttowercolour();
}
game.returnmenu();
map.nexttowercolour();
break;
}
break;
@ -735,15 +728,8 @@ static void menuactionpress(void)
else if (game.currentmenuoption == gameplayoptionsoffset + 4) {
//return to previous menu
music.playef(11);
if (game.ingame_titlemode)
{
game.returntoingame();
}
else
{
game.returnmenu();
map.nexttowercolour();
}
game.returnmenu();
map.nexttowercolour();
}
break;
@ -1632,8 +1618,7 @@ void titleinput(void)
else
{
if (game.ingame_titlemode
&& (game.currentmenuname == Menu::options
|| game.currentmenuname == Menu::graphicoptions))
&& game.currentmenuname == Menu::options)
{
game.returntoingame();
}