fixed rcon prompt when in loading state. closes #1886

This commit is contained in:
oy 2019-01-17 23:26:38 +01:00
parent 0dd1422f02
commit 65a5eac17e

View file

@ -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] = '*';