1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01: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: default:
//back //back
music.playef(11); music.playef(11);
if (game.ingame_titlemode) game.returnmenu();
{ map.nexttowercolour();
game.returntoingame();
}
else
{
game.returnmenu();
map.nexttowercolour();
}
break; break;
} }
break; break;
@ -735,15 +728,8 @@ static void menuactionpress(void)
else if (game.currentmenuoption == gameplayoptionsoffset + 4) { else if (game.currentmenuoption == gameplayoptionsoffset + 4) {
//return to previous menu //return to previous menu
music.playef(11); music.playef(11);
if (game.ingame_titlemode) game.returnmenu();
{ map.nexttowercolour();
game.returntoingame();
}
else
{
game.returnmenu();
map.nexttowercolour();
}
} }
break; break;
@ -1632,8 +1618,7 @@ void titleinput(void)
else else
{ {
if (game.ingame_titlemode if (game.ingame_titlemode
&& (game.currentmenuname == Menu::options && game.currentmenuname == Menu::options)
|| game.currentmenuname == Menu::graphicoptions))
{ {
game.returntoingame(); game.returntoingame();
} }