Fix yb_join_after_player_bug

Fix yb_join_after_player_bug from issue by GoDhAnD-897
This commit is contained in:
Владислав Сухов 2018-06-23 21:28:40 +06:00 committed by GitHub
commit c37d3580ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}
}
}