From 57197d990c7cf1b6ced67a31e57ce68a53e97a94 Mon Sep 17 00:00:00 2001 From: Emir Marincic Date: Sat, 20 Jul 2019 21:25:15 +0300 Subject: [PATCH] Better represent the state of the server Co-Authored-By: heinrich5991 --- src/engine/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index e9cc8582a..3483c2e20 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -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