1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00

Allow pressing Enter on teleporters during playtesting

There's no reason you shouldn't be allowed to press Enter on teleporters
during playtesting.

Well, except that you can press Esc in the teleporter menu in order to
go to the pause menu, which isn't intended in playtesting. But I can
just add a check there so that pressing Esc closes the teleporter menu
instead, it's fine.
This commit is contained in:
Misa 2020-07-11 00:15:06 -07:00 committed by Ethan Lee
parent 846c6f61d4
commit 5f131b426b

View File

@ -1720,6 +1720,8 @@ void gameinput()
//Return to level editor
if (game.activeactivity > -1 && game.press_map){
//pass, let code block below handle it
}else if(game.activetele && game.readytotele > 20 && game.press_map){
//pass, let code block below handle it
}else{
game.shouldreturntoeditor = true;
game.mapheld = true;
@ -2332,10 +2334,18 @@ void teleporterinput()
if (key.isDown(27))
{
// Go to "Do you want to quit?" screen
game.mapheld = true;
game.menupage = 10;
game.gamestate = MAPMODE;
if (!map.custommode || map.custommodeforreal)
{
// Go to "Do you want to quit?" screen
game.mapheld = true;
game.menupage = 10;
game.gamestate = MAPMODE;
}
else
{
// Close teleporter menu
graphics.resumegamemode = true;
}
}
}
else