mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Better represent the state of the server
Co-Authored-By: heinrich5991 <heinrich5991@gmx.de>
This commit is contained in:
parent
1769e5ae71
commit
57197d990c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue