mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Save current menu to temp variable when entering options from in-game
This is to pre-emptively prevent piling up stack frames for what I'll be adding next, which is pressing Esc in the options menu in-game automatically moving you back to MAPMODE.
This commit is contained in:
@@ -375,15 +375,16 @@ void menuactionpress()
|
||||
default:
|
||||
//back
|
||||
music.playef(11);
|
||||
game.returnmenu();
|
||||
if (game.ingame_titlemode)
|
||||
{
|
||||
game.ingame_titlemode = false;
|
||||
game.returntomenu(game.kludge_ingametemp);
|
||||
game.gamestate = MAPMODE;
|
||||
map.kludge_to_bg();
|
||||
}
|
||||
else
|
||||
{
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
}
|
||||
break;
|
||||
@@ -590,15 +591,16 @@ void menuactionpress()
|
||||
{
|
||||
//back
|
||||
music.playef(11);
|
||||
game.returnmenu();
|
||||
if (game.ingame_titlemode)
|
||||
{
|
||||
game.ingame_titlemode = false;
|
||||
game.returntomenu(game.kludge_ingametemp);
|
||||
game.gamestate = MAPMODE;
|
||||
map.kludge_to_bg();
|
||||
}
|
||||
else
|
||||
{
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
}
|
||||
}
|
||||
@@ -2122,6 +2124,7 @@ void mapmenuactionpress()
|
||||
game.createmenu(Menu::options);
|
||||
}
|
||||
map.bg_to_kludge();
|
||||
game.kludge_ingametemp = game.currentmenuname;
|
||||
|
||||
map.nexttowercolour();
|
||||
map.scrolldir = 0;
|
||||
|
||||
Reference in New Issue
Block a user