1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59: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:
NyakoFox 2024-06-04 11:07:45 -03:00
parent c394a6381e
commit 757e20ae24

View file

@ -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*/ )