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 authored and Ethan Lee committed 2020-06-23 15:23:57 -04:00
1 parent 75326ca2ee
commit 6582801dc9
3 files changed
+7 -2

No files matched your search

+1
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;