Escape during popup: Only make popup disappear

Not the menu. Otherwise when opening the menu again the popup will
reappear for one frame before disappearing.
This commit is contained in:
def 2019-03-25 20:01:10 +01:00
parent 958778b441
commit d31e9833f9

View file

@ -1733,7 +1733,8 @@ bool CMenus::OnInput(IInput::CEvent e)
if(e.m_Key == KEY_ESCAPE)
{
m_EscapePressed = true;
SetActive(!IsActive());
if(m_Popup == POPUP_NONE)
SetActive(!IsActive());
return true;
}
}