Don't allow input in console while it is opening/closing

This commit is contained in:
furo 2024-08-25 19:09:09 +02:00
parent be2e49e1f6
commit 0b27a47553

View file

@ -377,6 +377,10 @@ bool CGameConsole::CInstance::OnInput(const IInput::CEvent &Event)
{
bool Handled = false;
// Don't allow input while the console is opening/closing
if(m_pGameConsole->m_ConsoleState == CONSOLE_OPENING || m_pGameConsole->m_ConsoleState == CONSOLE_CLOSING)
return Handled;
auto &&SelectNextSearchMatch = [&](int Direction) {
if(!m_vSearchMatches.empty())
{