- fixed: The menu code should not reset the global input state when trying to close a menu with none open.

This commit is contained in:
Christoph Oelckers 2020-02-09 22:57:04 +01:00
parent e3f8fca36e
commit 8374b9e1b4

View file

@ -922,6 +922,7 @@ void M_Drawer (void)
void M_ClearMenus (bool final)
{
if (menuactive == MENU_Off) return;
M_DemoNoPlay = false;
transition.previous = transition.current = nullptr;
transition.dir = 0;
@ -937,8 +938,8 @@ void M_ClearMenus (bool final)
menuactive = MENU_Off;
if (!final)
{
mouseGrabInput(true);
gi->MenuClosed();
mouseGrabInput(true);
gi->MenuClosed();
}
}