Better represent the state of the server

Co-Authored-By: heinrich5991 <heinrich5991@gmx.de>
This commit is contained in:
Emir Marincic 2019-07-20 21:25:15 +03:00 committed by GitHub
parent 1769e5ae71
commit 57197d990c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1585,7 +1585,7 @@ void CServer::SendServerInfo(const NETADDR *pAddr, int Token, int Type, bool Sen
}
ADD_INT(p, PlayerCount); // num players
ADD_INT(p, maximum(MaxClients - g_Config.m_SvSpectatorSlots - g_Config.m_SvReservedSlots, PlayerCount)); // max players
ADD_INT(p, maximum(MaxClients - maximum(g_Config.m_SvSpectatorSlots, g_Config.m_SvReservedSlots), PlayerCount)); // max players
ADD_INT(p, ClientCount); // num clients
ADD_INT(p, maximum(MaxClients - g_Config.m_SvReservedSlots, ClientCount)); // max clients