1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-24 13:38:29 +02:00

Add being able to press Esc to go to quit menu from teleporter menu

It's always been a bit annoying that if you're in the teleporter menu,
you can't press Escape to go to the "Do you want to quit?" menu.
This commit is contained in:
Misa 2020-06-20 17:34:45 -07:00 committed by Ethan Lee
parent afd16ebc73
commit 8c9c3d3751

View File

@ -2093,6 +2093,14 @@ void teleporterinput()
//In the menu system, all keypresses are single taps rather than holds. Therefore this test has to be done for all presses
if (!game.press_action && !game.press_left && !game.press_right) game.jumpheld = false;
if (!game.press_map) game.mapheld = false;
if (key.isDown(27))
{
// Go to "Do you want to quit?" screen
game.mapheld = true;
game.menupage = 10;
game.gamestate = MAPMODE;
}
}
else
{