mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 18:39:45 +01:00
Fix editor menu options going back to editor not using returnmenu()
Instead of directly using Game::createmenu(Menu::ed_settings), we should be using Game::returnmenu() here, so the stack frames don't keep piling up.
This commit is contained in:
parent
9fca3e111f
commit
98e33fca9e
1 changed files with 3 additions and 3 deletions
|
@ -3509,7 +3509,7 @@ void editormenuactionpress()
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
music.playef(11);
|
music.playef(11);
|
||||||
game.createmenu(Menu::ed_settings);
|
game.returnmenu();
|
||||||
map.nexttowercolour();
|
map.nexttowercolour();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -3600,7 +3600,7 @@ void editormenuactionpress()
|
||||||
case 1:
|
case 1:
|
||||||
music.playef(11);
|
music.playef(11);
|
||||||
music.fadeout();
|
music.fadeout();
|
||||||
game.createmenu(Menu::ed_settings);
|
game.returnmenu();
|
||||||
map.nexttowercolour();
|
map.nexttowercolour();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -3633,7 +3633,7 @@ void editormenuactionpress()
|
||||||
case 2:
|
case 2:
|
||||||
//Go back to editor
|
//Go back to editor
|
||||||
music.playef(11);
|
music.playef(11);
|
||||||
game.createmenu(Menu::ed_settings);
|
game.returnmenu();
|
||||||
map.nexttowercolour();
|
map.nexttowercolour();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue