mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Immediately accept input while console is still opening (fixes #484)
This commit is contained in:
parent
3d3827a57d
commit
1d98ff031c
|
@ -609,7 +609,7 @@ void CGameConsole::OnMessage(int MsgType, void *pRawMsg)
|
|||
|
||||
bool CGameConsole::OnInput(IInput::CEvent Event)
|
||||
{
|
||||
if(m_ConsoleState != CONSOLE_OPEN)
|
||||
if(m_ConsoleState != CONSOLE_OPEN && m_ConsoleState != CONSOLE_OPENING)
|
||||
return false;
|
||||
if((Event.m_Key >= KEY_F1 && Event.m_Key <= KEY_F12) || (Event.m_Key >= KEY_F13 && Event.m_Key <= KEY_F24))
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue