Fix: Properly show 64 player servers

This commit is contained in:
def 2014-01-11 04:08:01 +01:00
parent 736891c945
commit 8af9f9d6a3

View file

@ -1048,6 +1048,9 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket)
if(net_addr_comp(&m_ServerAddress, &pPacket->m_Address) == 0) if(net_addr_comp(&m_ServerAddress, &pPacket->m_Address) == 0)
{ {
if(m_CurrentServerInfo.m_MaxClients > VANILLA_MAX_CLIENTS)
return;
mem_copy(&m_CurrentServerInfo, &Info, sizeof(m_CurrentServerInfo)); mem_copy(&m_CurrentServerInfo, &Info, sizeof(m_CurrentServerInfo));
m_CurrentServerInfo.m_NetAddr = m_ServerAddress; m_CurrentServerInfo.m_NetAddr = m_ServerAddress;
m_CurrentServerInfoRequestTime = -1; m_CurrentServerInfoRequestTime = -1;