mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
30123e700d
commit
690929d29a
1 changed files with 5 additions and 5 deletions
|
@ -6874,12 +6874,12 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
|
||||
if (temp == 1)
|
||||
{
|
||||
createmenu(Menu::unlocktimetrial);
|
||||
createmenu(Menu::unlocktimetrial, true);
|
||||
savemystats = true;
|
||||
}
|
||||
else if (temp > 1)
|
||||
{
|
||||
createmenu(Menu::unlocktimetrials);
|
||||
createmenu(Menu::unlocktimetrials, true);
|
||||
savemystats = true;
|
||||
}
|
||||
}
|
||||
|
@ -6898,7 +6898,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
//Unlock No Death Mode
|
||||
unlocknotify[17] = true;
|
||||
unlock[17] = true;
|
||||
createmenu(Menu::unlocknodeathmode);
|
||||
createmenu(Menu::unlocknodeathmode, true);
|
||||
savemystats = true;
|
||||
}
|
||||
//Alright then! Flip mode?
|
||||
|
@ -6906,7 +6906,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
{
|
||||
unlock[18] = true;
|
||||
unlocknotify[18] = true;
|
||||
createmenu(Menu::unlockflipmode);
|
||||
createmenu(Menu::unlockflipmode, true);
|
||||
savemystats = true;
|
||||
}
|
||||
//What about the intermission levels?
|
||||
|
@ -6914,7 +6914,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
{
|
||||
unlock[16] = true;
|
||||
unlocknotify[16] = true;
|
||||
createmenu(Menu::unlockintermission);
|
||||
createmenu(Menu::unlockintermission, true);
|
||||
savemystats = true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue