Fix yb_join_after_player_bug
Fix yb_join_after_player_bug from issue by GoDhAnD-897
This commit is contained in:
parent
2ec5a730b0
commit
c37d3580ee
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue