mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
dont count reserved slots on the server for the client browser
This commit is contained in:
parent
dc22007c24
commit
d5755f8ad2
|
@ -977,7 +977,7 @@ void CServer::SendServerInfo(NETADDR *pAddr, int Token)
|
|||
p.AddString(aBuf, 4);
|
||||
|
||||
str_format(aBuf, sizeof(aBuf), "%d", PlayerCount); p.AddString(aBuf, 3); // num players
|
||||
str_format(aBuf, sizeof(aBuf), "%d", m_NetServer.MaxClients()); p.AddString(aBuf, 3); // max players
|
||||
str_format(aBuf, sizeof(aBuf), "%d", max(m_NetServer.MaxClients() - g_Config.m_SvReservedSlots, PlayerCount)); p.AddString(aBuf, 3); // max players
|
||||
|
||||
for(i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue