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

Fix returning from confirm quit menu putting cursor on options

The in-game menu code is better than it was in 2.2 but still pretty
hardcoded, so to fix this just change each individual case around. This
bug happened because the "options" button was in the place where "quit
to menu" was previously, but Terry forgot to update it when changing all
the options around.
This commit is contained in:
Misa 2021-04-11 13:45:42 -07:00 committed by Ethan Lee
parent aa5c2d9dc2
commit d89ce76577

View File

@ -2147,7 +2147,7 @@ void mapinput(void)
{
game.press_action = true;
}
if (game.menupage < 12 || (game.menupage >= 30 && game.menupage <= 33))
if (game.menupage < 12 || (game.menupage >= 30 && game.menupage <= 32))
{
if (key.isDown(KEYBOARD_ENTER) || key.isDown(game.controllerButton_map) ) game.press_map = true;
if (key.isDown(27) && !game.mapheld)
@ -2159,7 +2159,7 @@ void mapinput(void)
}
else if (game.menupage < 12)
{
game.menupage = 31;
game.menupage = 32;
}
else
{
@ -2297,7 +2297,7 @@ static void mapmenuactionpress(void)
case 10:
//return to pause menu
music.playef(11);
game.menupage = 31;
game.menupage = 32;
break;
case 11:
//quit to menu