From c37d3580eed4d86d91daf8160c28747719c75b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= Date: Sat, 23 Jun 2018 21:28:40 +0600 Subject: [PATCH] Fix yb_join_after_player_bug Fix yb_join_after_player_bug from issue by GoDhAnD-897 --- source/manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/manager.cpp b/source/manager.cpp index c63900b..af8418c 100644 --- a/source/manager.cpp +++ b/source/manager.cpp @@ -480,11 +480,11 @@ void BotManager::MaintainBotQuota (void) int numHumans = GetHumansNum (); int desiredCount = yb_quota.GetInt (); - if (yb_join_after_player.GetBool () && !numHumans) - desiredCount = 0; - int numHumansOnTeam = yb_autovacate_smart_kick.GetBool () ? GetHumansJoinedTeam () : numHumans; + if (yb_join_after_player.GetBool () && !numHumansOnTeam) + desiredCount = 0; + // quota mode char mode = yb_quota_mode.GetString ()[0]; @@ -1692,4 +1692,4 @@ void BotManager::SelectLeaderEachTeam (int team, bool reset) bot->RadioMessage (Radio_FollowMe); } } -} \ No newline at end of file +}