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
This commit is contained in:
alexey.lysiuk 2018-03-05 16:53:17 +02:00
parent 3e9de3788d
commit adae6c19b8

View file

@ -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);