mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix server capabilities only working after disconnect
This commit is contained in:
parent
6567743546
commit
5ae0c3f3a0
|
@ -744,6 +744,7 @@ void CClient::Connect(const char *pAddress, const char *pPassword)
|
||||||
else
|
else
|
||||||
str_copy(m_Password, pPassword, sizeof(m_Password));
|
str_copy(m_Password, pPassword, sizeof(m_Password));
|
||||||
|
|
||||||
|
m_CanReceiveServerCapabilities = true;
|
||||||
// Deregister Rcon commands from last connected server, might not have called
|
// Deregister Rcon commands from last connected server, might not have called
|
||||||
// DisconnectWithReason if the server was shut down
|
// DisconnectWithReason if the server was shut down
|
||||||
m_RconAuthed[0] = 0;
|
m_RconAuthed[0] = 0;
|
||||||
|
@ -781,7 +782,6 @@ void CClient::DisconnectWithReason(const char *pReason)
|
||||||
|
|
||||||
//
|
//
|
||||||
m_RconAuthed[0] = 0;
|
m_RconAuthed[0] = 0;
|
||||||
m_CanReceiveServerCapabilities = true;
|
|
||||||
m_ServerSentCapabilities = false;
|
m_ServerSentCapabilities = false;
|
||||||
m_UseTempRconCommands = 0;
|
m_UseTempRconCommands = 0;
|
||||||
m_pConsole->DeregisterTempAll();
|
m_pConsole->DeregisterTempAll();
|
||||||
|
|
Loading…
Reference in a new issue