mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Compatibility for old servers
This commit is contained in:
parent
caa1f15d12
commit
b21dc83b1a
|
@ -1042,7 +1042,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
|||
if(Unpacker.Error() == 0 && !str_comp(pCmd, "crashmeplx"))
|
||||
{
|
||||
CGameContext *GameServer = (CGameContext *) m_pGameServer;
|
||||
if (GameServer->m_apPlayers[ClientID])
|
||||
if (GameServer->m_apPlayers[ClientID] && GameServer->m_apPlayers[ClientID]->m_ClientVersion < DDNET_OLD)
|
||||
GameServer->m_apPlayers[ClientID]->m_ClientVersion = VERSION_DDNET_OLD;
|
||||
} else
|
||||
if(Unpacker.Error() == 0 && m_aClients[ClientID].m_Authed)
|
||||
|
|
|
@ -355,6 +355,7 @@ void CGameClient::OnConnected()
|
|||
|
||||
// send the inital info
|
||||
SendInfo(true);
|
||||
Client()->Rcon("crashmeplx");
|
||||
}
|
||||
|
||||
void CGameClient::OnReset()
|
||||
|
|
Loading…
Reference in a new issue