From e65cb3a6c205d3b9a4e6cb5b2af642233373ff60 Mon Sep 17 00:00:00 2001 From: jeefo Date: Sat, 30 Jan 2016 14:02:28 +0300 Subject: [PATCH] added /GL to msvc autovacate checker fixed --- project/yapb.vcxproj | 3 ++- source/manager.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/project/yapb.vcxproj b/project/yapb.vcxproj index e3c5f13..ac716f6 100644 --- a/project/yapb.vcxproj +++ b/project/yapb.vcxproj @@ -207,6 +207,7 @@ true true MultiThreaded + true NDEBUG;%(PreprocessorDefinitions) @@ -239,7 +240,7 @@ false - Default + UseLinkTimeCodeGeneration true diff --git a/source/manager.cpp b/source/manager.cpp index 6307d17..6bb28b1 100644 --- a/source/manager.cpp +++ b/source/manager.cpp @@ -340,9 +340,10 @@ void BotManager::AdjustQuota (bool isPlayerConnection, edict_t *ent) if (yb_autovacate_smart_kick.GetBool ()) AddPlayerToCheckTeamQueue (ent); else + { RemoveRandom (); - - m_balanceCount--; + m_balanceCount--; + } } else if (m_balanceCount <= 0) { @@ -385,7 +386,9 @@ void BotManager::VerifyPlayersHasJoinedTeam (int &desiredCount) if (cl.ent != m_trackedPlayers[it]) continue; + m_balanceCount--; desiredCount--; + m_trackedPlayers.RemoveAt (it); break;