From adae6c19b868c732a14a31b8ad7e8faca6bc704a Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 5 Mar 2018 16:53:17 +0200 Subject: [PATCH] Made left button down event available to UI event handler Main menu is no longer triggered in game on left mouse button press when handler is processing UI events https://forum.zdoom.org/viewtopic.php?t=59673 --- src/menu/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/menu.cpp b/src/menu/menu.cpp index f03c37eb7..bf8999ded 100644 --- a/src/menu/menu.cpp +++ b/src/menu/menu.cpp @@ -714,7 +714,7 @@ bool M_Responder (event_t *ev) return false; } else if (ev->type == EV_GUI_Event && ev->subtype == EV_GUI_LButtonDown && - ConsoleState != c_down && m_use_mouse) + ConsoleState != c_down && gamestate != GS_LEVEL && m_use_mouse) { M_StartControlPanel(true); M_SetMenu(NAME_Mainmenu, -1);