1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09: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:
Misa 2020-08-02 21:37:52 -07:00 committed by Ethan Lee
parent 30123e700d
commit 690929d29a

View file

@ -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