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

Allow using Esc in Super Gravitron quit menu

This is a small quality-of-life fix in the same vein as allowing the
player to press Esc in the teleporter menu (which they weren't able to
do in 2.2, either).
This commit is contained in:
Misa 2021-05-06 11:58:38 -07:00
parent 673699cef5
commit 884d562a63

View file

@ -2215,13 +2215,16 @@ void mapinput(void)
{
game.press_action = true;
}
if (game.menupage < 12 || (game.menupage >= 30 && game.menupage <= 32))
if (game.menupage < 12
|| (game.menupage >= 20 && game.menupage <= 21)
|| (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)
{
game.mapheld = true;
if (game.menupage < 9)
if (game.menupage < 9
|| (game.menupage >= 20 && game.menupage <= 21))
{
game.menupage = 30;
}