1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Use game.inspecial() in mapmenuactionpress()

Apart from covering more cases with the SHIP option, it also makes the
if-guard for case 3 much less noisy on the eyes.
This commit is contained in:
Misa 2020-06-22 15:37:19 -07:00 committed by Ethan Lee
parent 949e99c950
commit 4274843a4b

View file

@ -1999,7 +1999,7 @@ void mapmenuactionpress()
switch (game.menupage)
{
case 1:
if (obj.flags[67] && !game.insecretlab && !map.custommode)
if (obj.flags[67] && !game.inspecial() && !map.custommode)
{
//Warp back to the ship
graphics.resumegamemode = true;
@ -2024,8 +2024,7 @@ void mapmenuactionpress()
}
break;
case 3:
if (!game.gamesaved && !game.intimetrial
&& !game.nodeathmode && !game.insecretlab && !game.inintermission)
if (!game.gamesaved && !game.inspecial())
{
game.flashlight = 5;
game.screenshake = 10;