Prevent user-initiated map menu changes during menu animations

This makes it so it's not even possible to stay on the TELEPORTERMODE
screen by opening the map while it's being brought down. It also makes
it so the map animation is able to be canceled when being brought up
just by opening the map and closing it.

Fixes #833.
This commit is contained in:
Misa
2021-09-02 12:21:46 -07:00
parent 4ecec8a327
commit 82971296c2
4 changed files with 14 additions and 7 deletions

View File

@@ -245,7 +245,7 @@ public:
int tapleft, tapright;
//Menu interaction stuff
void mapmenuchange(const int newgamestate);
void mapmenuchange(const int newgamestate, const bool user_initiated);
bool mapheld;
int menupage;
int lastsaved;