mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
7d69b07160
commit
b77f98e3c1
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue