mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Don't go to main menu when exiting to menu
This also replaces some createmenu()s with returnmenu()s as needed even when said createmenu()s already didn't go to the main menu. Now when you exit the level editor, you'll be selecting the "level editor" option in "play levels", and if you exit from a level you'll still be selecting that level in the levels list. Furthermore, regardless of what you're exiting, your cursor position will be remembered.
This commit is contained in:
@@ -3455,7 +3455,10 @@ void editorlogic()
|
||||
map.nexttowercolour();
|
||||
ed.settingsmod=false;
|
||||
graphics.backgrounddrawn=false;
|
||||
game.createmenu(Menu::mainmenu);
|
||||
//Do returnmenu twice because we have two menus:
|
||||
//the main editor menu and the confirm save&quit menu
|
||||
game.returnmenu();
|
||||
game.returnmenu();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user