mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed rcon prompt when in loading state. closes #1886
This commit is contained in:
parent
0dd1422f02
commit
65a5eac17e
|
@ -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] = '*';
|
||||
|
|
Loading…
Reference in a new issue