Compatibility for old servers

This commit is contained in:
def 2014-01-30 17:15:54 +01:00
parent caa1f15d12
commit b21dc83b1a
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -355,6 +355,7 @@ void CGameClient::OnConnected()
// send the inital info
SendInfo(true);
Client()->Rcon("crashmeplx");
}
void CGameClient::OnReset()