mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-22 08:49:46 +01: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:
parent
846c6f61d4
commit
5f131b426b
1 changed files with 14 additions and 4 deletions
|
@ -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;
|
||||
|
@ -2331,12 +2333,20 @@ void teleporterinput()
|
|||
if (!game.press_map) game.mapheld = false;
|
||||
|
||||
if (key.isDown(27))
|
||||
{
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue