Save current menu to temp variable when entering options from in-game

This is to pre-emptively prevent piling up stack frames for what I'll be
adding next, which is pressing Esc in the options menu in-game
automatically moving you back to MAPMODE.
This commit is contained in:
Misa
2020-06-22 17:23:56 -07:00
committed by Ethan Lee
parent 75326ca2ee
commit 6582801dc9
3 changed files with 7 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ public:
std::vector<MenuOption> menuoptions;
int currentmenuoption ;
enum Menu::MenuName currentmenuname;
enum Menu::MenuName kludge_ingametemp;
int current_credits_list_index;
int menuxoff, menuyoff;
std::vector<MenuStackFrame> menustack;