mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix dupe stack frame when creating unlock notif menu
The samemenu argument to createmenu() just has to be set to true so another stack frame doesn't get added. Fixes #415.
This commit is contained in:
@@ -6874,12 +6874,12 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||||||
|
|
||||||
if (temp == 1)
|
if (temp == 1)
|
||||||
{
|
{
|
||||||
createmenu(Menu::unlocktimetrial);
|
createmenu(Menu::unlocktimetrial, true);
|
||||||
savemystats = true;
|
savemystats = true;
|
||||||
}
|
}
|
||||||
else if (temp > 1)
|
else if (temp > 1)
|
||||||
{
|
{
|
||||||
createmenu(Menu::unlocktimetrials);
|
createmenu(Menu::unlocktimetrials, true);
|
||||||
savemystats = true;
|
savemystats = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6898,7 +6898,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||||||
//Unlock No Death Mode
|
//Unlock No Death Mode
|
||||||
unlocknotify[17] = true;
|
unlocknotify[17] = true;
|
||||||
unlock[17] = true;
|
unlock[17] = true;
|
||||||
createmenu(Menu::unlocknodeathmode);
|
createmenu(Menu::unlocknodeathmode, true);
|
||||||
savemystats = true;
|
savemystats = true;
|
||||||
}
|
}
|
||||||
//Alright then! Flip mode?
|
//Alright then! Flip mode?
|
||||||
@@ -6906,7 +6906,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||||||
{
|
{
|
||||||
unlock[18] = true;
|
unlock[18] = true;
|
||||||
unlocknotify[18] = true;
|
unlocknotify[18] = true;
|
||||||
createmenu(Menu::unlockflipmode);
|
createmenu(Menu::unlockflipmode, true);
|
||||||
savemystats = true;
|
savemystats = true;
|
||||||
}
|
}
|
||||||
//What about the intermission levels?
|
//What about the intermission levels?
|
||||||
@@ -6914,7 +6914,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||||||
{
|
{
|
||||||
unlock[16] = true;
|
unlock[16] = true;
|
||||||
unlocknotify[16] = true;
|
unlocknotify[16] = true;
|
||||||
createmenu(Menu::unlockintermission);
|
createmenu(Menu::unlockintermission, true);
|
||||||
savemystats = true;
|
savemystats = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user