mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Reset the username on disconnect
This commit is contained in:
parent
648452ca60
commit
81135d17de
|
@ -820,6 +820,7 @@ void CGameConsole::OnStateChange(int NewState, int OldState)
|
|||
if(OldState == IClient::STATE_ONLINE && NewState < IClient::STATE_LOADING)
|
||||
{
|
||||
m_RemoteConsole.m_UserGot = false;
|
||||
m_RemoteConsole.m_aUser[0] = '\0';
|
||||
m_RemoteConsole.m_Input.Clear();
|
||||
m_RemoteConsole.m_UsernameReq = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue