From 49a860bc9ec0bf2d00e45db19937f290d9ba1cf9 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 4 Nov 2011 10:01:28 -0400 Subject: [PATCH] Fixed sp MaxClients not being updated on map changes after load (5160, r=fyren). --- core/PlayerManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index 9fc5ddb3..6ee162fd 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -263,10 +263,10 @@ void PlayerManager::OnServerActivate(edict_t *pEdictList, int edictCount, int cl memset(m_AuthQueue, 0, sizeof(unsigned int) * (ABSOLUTE_PLAYER_LIMIT + 1)); g_NumPlayersToAuth = &m_AuthQueue[0]; - - g_PluginSys.SyncMaxClients(m_maxClients); } + g_PluginSys.SyncMaxClients(m_maxClients); + g_OnMapStarted = true; g_Extensions.CallOnCoreMapStart(pEdictList, edictCount, m_maxClients);