On server updates we can't find out who is using ddnet client, so send extended server info to everyone

This commit is contained in:
def 2014-02-03 15:21:13 +01:00
parent 7d69b07160
commit b77f98e3c1

View file

@ -1285,11 +1285,8 @@ void CServer::UpdateServerInfo()
{
if(m_aClients[i].m_State != CClient::STATE_EMPTY)
{
CGameContext *GameServer = (CGameContext *) m_pGameServer;
if (GameServer->m_apPlayers[i] && GameServer->m_apPlayers[i]->m_ClientVersion >= VERSION_DDNET_OLD)
SendServerInfo(m_NetServer.ClientAddr(i), -1, true);
else
SendServerInfo(m_NetServer.ClientAddr(i), -1, false);
SendServerInfo(m_NetServer.ClientAddr(i), -1, true);
SendServerInfo(m_NetServer.ClientAddr(i), -1, false);
}
}
}