mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Prevent user-initiated map menu changes during menu animations
This makes it so it's not even possible to stay on the TELEPORTERMODE screen by opening the map while it's being brought down. It also makes it so the map animation is able to be canceled when being brought up just by opening the map and closing it. Fixes #833.
This commit is contained in:
@@ -2128,7 +2128,7 @@ void gameinput(void)
|
||||
else if (game.companion == 0)
|
||||
{
|
||||
//Alright, normal teleporting
|
||||
game.mapmenuchange(TELEPORTERMODE);
|
||||
game.mapmenuchange(TELEPORTERMODE, true);
|
||||
|
||||
game.useteleporter = true;
|
||||
game.initteleportermode();
|
||||
@@ -2315,7 +2315,7 @@ void gameinput(void)
|
||||
//quitting the super gravitron
|
||||
game.mapheld = true;
|
||||
//Quit menu, same conditions as in game menu
|
||||
game.mapmenuchange(MAPMODE);
|
||||
game.mapmenuchange(MAPMODE, true);
|
||||
game.gamesaved = false;
|
||||
game.gamesavefailed = false;
|
||||
game.menupage = 20; // The Map Page
|
||||
@@ -2335,7 +2335,7 @@ void gameinput(void)
|
||||
else
|
||||
{
|
||||
//Normal map screen, do transition later
|
||||
game.mapmenuchange(MAPMODE);
|
||||
game.mapmenuchange(MAPMODE, true);
|
||||
map.cursordelay = 0;
|
||||
map.cursorstate = 0;
|
||||
game.gamesaved = false;
|
||||
@@ -2356,7 +2356,7 @@ void gameinput(void)
|
||||
{
|
||||
game.mapheld = true;
|
||||
//Quit menu, same conditions as in game menu
|
||||
game.mapmenuchange(MAPMODE);
|
||||
game.mapmenuchange(MAPMODE, true);
|
||||
game.gamesaved = false;
|
||||
game.gamesavefailed = false;
|
||||
game.menupage = 30; // Pause screen
|
||||
|
||||
Reference in New Issue
Block a user