mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
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:
parent
958778b441
commit
d31e9833f9
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue