mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user