3033: Reset m_ServerCapabilities on Disconnect r=Jupeyy a=def-

Reported by builder17 that on Vanilla server timeout code can get sent

Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-10-07 16:58:40 +00:00 committed by GitHub
commit 8d336f61ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -770,6 +770,7 @@ void CClient::DisconnectWithReason(const char *pReason)
m_RconAuthed[0] = 0; m_RconAuthed[0] = 0;
m_CanReceiveServerCapabilities = true; m_CanReceiveServerCapabilities = true;
m_ServerSentCapabilities = false; m_ServerSentCapabilities = false;
m_ServerCapabilities.m_ChatTimeoutCode = false;
m_UseTempRconCommands = 0; m_UseTempRconCommands = 0;
m_pConsole->DeregisterTempAll(); m_pConsole->DeregisterTempAll();
m_NetClient[CLIENT_MAIN].Disconnect(pReason); m_NetClient[CLIENT_MAIN].Disconnect(pReason);