Allow changing UsernameReq while connected

This commit is contained in:
Learath 2017-10-16 20:08:39 +02:00
parent 81135d17de
commit 9ae2c16235

View file

@ -783,7 +783,11 @@ void CGameConsole::ConchainConsoleOutputLevelUpdate(IConsole::IResult *pResult,
void CGameConsole::RequireUsername(bool UsernameReq) void CGameConsole::RequireUsername(bool UsernameReq)
{ {
m_RemoteConsole.m_UsernameReq = UsernameReq; if((m_RemoteConsole.m_UsernameReq = UsernameReq))
{
m_RemoteConsole.m_aUser[0] = '\0';
m_RemoteConsole.m_UserGot = false;
}
} }
void CGameConsole::PrintLine(int Type, const char *pLine) void CGameConsole::PrintLine(int Type, const char *pLine)