From 65a5eac17e96d0137dc696857a07921c484b5cb0 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 17 Jan 2019 23:26:38 +0100 Subject: [PATCH] fixed rcon prompt when in loading state. closes #1886 --- src/game/client/components/console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 4cc1eaff3..94bb843da 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -465,7 +465,7 @@ void CGameConsole::OnRender() const char *pPrompt = "> "; if(m_ConsoleType == CONSOLETYPE_REMOTE) { - if(Client()->State() == IClient::STATE_ONLINE) + if(Client()->State() == IClient::STATE_ONLINE || Client()->State() == IClient::STATE_LOADING) { if(Client()->RconAuthed()) pPrompt = "rcon> "; @@ -482,7 +482,7 @@ void CGameConsole::OnRender() //hide rcon password char aInputString[256]; str_copy(aInputString, pConsole->m_Input.GetString(), sizeof(aInputString)); - if(m_ConsoleType == CONSOLETYPE_REMOTE && Client()->State() == IClient::STATE_ONLINE && !Client()->RconAuthed()) + if(m_ConsoleType == CONSOLETYPE_REMOTE && (Client()->State() == IClient::STATE_ONLINE || Client()->State() == IClient::STATE_LOADING) && !Client()->RconAuthed()) { for(int i = 0; i < pConsole->m_Input.GetLength(); ++i) aInputString[i] = '*';