mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix exiting No Death Mode being one menu too far back
I want exiting No Death Mode to go back to the "play modes" menu, not to the "start game" menu, because it's too far back. Also do the same if you either die or complete No Death Mode. Also I initialized Game::wasinintermission, probably a good thing to initialize variables.
This commit is contained in:
@@ -233,6 +233,8 @@ void Game::init(void)
|
||||
createmenu(Menu::mainmenu);
|
||||
|
||||
wasintimetrial = false;
|
||||
wasinintermission = false;
|
||||
wasinnodeathmode = false;
|
||||
wasincustommode = false;
|
||||
|
||||
deathcounts = 0;
|
||||
@@ -1353,6 +1355,10 @@ void Game::updatestate()
|
||||
{
|
||||
returntomenu(Menu::intermissionmenu);
|
||||
}
|
||||
else if (wasinnodeathmode)
|
||||
{
|
||||
returntomenu(Menu::playmodes);
|
||||
}
|
||||
else if (wasincustommode)
|
||||
{
|
||||
returntomenu(Menu::levellist);
|
||||
@@ -1367,6 +1373,7 @@ void Game::updatestate()
|
||||
}
|
||||
wasintimetrial = false;
|
||||
wasinintermission = false;
|
||||
wasinnodeathmode = false;
|
||||
wasincustommode = false;
|
||||
state = 0;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user