mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Make "start game" goto play menu if any unlocks, even if saves deleted
This commit fixes a slightly frustrating thing where if you start a new game, and then exit before saving, "start game" will always take you to a new game, even though you have unlocked things like the Secret Lab or Time Trials. Now, if you select "new game" (only possible if you have something unlocked), then quit before saving, "start game" will still take you to the play menu, but "continue" is replaced with "start" and "new game" is gone.
This commit is contained in:
@@ -1357,7 +1357,7 @@ void Game::updatestate()
|
||||
{
|
||||
returntomenu(Menu::levellist);
|
||||
}
|
||||
else if (game.telesummary != "" || game.quicksummary != "")
|
||||
else if (game.telesummary != "" || game.quicksummary != "" || anything_unlocked())
|
||||
{
|
||||
returntomenu(Menu::play);
|
||||
}
|
||||
@@ -7025,14 +7025,24 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
||||
}
|
||||
else
|
||||
{
|
||||
option("continue");
|
||||
if (telesummary != "" || quicksummary != "")
|
||||
{
|
||||
option("continue");
|
||||
}
|
||||
else
|
||||
{
|
||||
option("start");
|
||||
}
|
||||
//ok, secret lab! no notification, but test:
|
||||
if (unlock[8])
|
||||
{
|
||||
option("secret lab", !map.invincibility && game.slowdown == 30);
|
||||
}
|
||||
option("play modes");
|
||||
option("new game");
|
||||
if (telesummary != "" || quicksummary != "")
|
||||
{
|
||||
option("new game");
|
||||
}
|
||||
option("return");
|
||||
if (unlock[8])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user