mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -1999,7 +1999,7 @@ void mapmenuactionpress()
|
|||||||
switch (game.menupage)
|
switch (game.menupage)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
if (obj.flags[67] && !game.insecretlab && !map.custommode)
|
if (obj.flags[67] && !game.inspecial() && !map.custommode)
|
||||||
{
|
{
|
||||||
//Warp back to the ship
|
//Warp back to the ship
|
||||||
graphics.resumegamemode = true;
|
graphics.resumegamemode = true;
|
||||||
@@ -2024,8 +2024,7 @@ void mapmenuactionpress()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (!game.gamesaved && !game.intimetrial
|
if (!game.gamesaved && !game.inspecial())
|
||||||
&& !game.nodeathmode && !game.insecretlab && !game.inintermission)
|
|
||||||
{
|
{
|
||||||
game.flashlight = 5;
|
game.flashlight = 5;
|
||||||
game.screenshake = 10;
|
game.screenshake = 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user