mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Fix saveless saving and quitting hiding buttons
Basically, when you save and quit, if you have a save, it attempts to return to the `play` menu. Unfortunately for us, if you don't have a save first, that menu never existed. You went directly from `mainmenu` to the gameplay state. Since `play` never existed, the code didn't have any menu to return to, so no buttons got created. My fix is simple: if the menu isn't found, just make it.
This commit is contained in:
parent
c394a6381e
commit
757e20ae24
1 changed files with 4 additions and 1 deletions
|
@ -6578,11 +6578,14 @@ void Game::returntomenu(enum Menu::MenuName t)
|
|||
|
||||
if (is_the_menu_we_want)
|
||||
{
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
i--;
|
||||
}
|
||||
|
||||
// If we didn't find the menu we wanted, just go to the menu we wanted
|
||||
createmenu(t);
|
||||
}
|
||||
|
||||
void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
||||
|
|
Loading…
Reference in a new issue