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 authored and Ethan Lee committed 2021-04-11 16:58:10 -04:00
1 parent aa5c2d9dc2
commit d89ce76577
1 file changed
+3 -3
+3 -3
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