Merge pull request #61 from VladAndroidGamer/patch-1
Fix yb_join_after_player_bug
This commit is contained in:
commit
d3d1aa2320
1 changed files with 4 additions and 4 deletions
|
|
@ -480,11 +480,11 @@ void BotManager::MaintainBotQuota (void)
|
||||||
int numHumans = GetHumansNum ();
|
int numHumans = GetHumansNum ();
|
||||||
int desiredCount = yb_quota.GetInt ();
|
int desiredCount = yb_quota.GetInt ();
|
||||||
|
|
||||||
if (yb_join_after_player.GetBool () && !numHumans)
|
|
||||||
desiredCount = 0;
|
|
||||||
|
|
||||||
int numHumansOnTeam = yb_autovacate_smart_kick.GetBool () ? GetHumansJoinedTeam () : numHumans;
|
int numHumansOnTeam = yb_autovacate_smart_kick.GetBool () ? GetHumansJoinedTeam () : numHumans;
|
||||||
|
|
||||||
|
if (yb_join_after_player.GetBool () && !numHumansOnTeam)
|
||||||
|
desiredCount = 0;
|
||||||
|
|
||||||
// quota mode
|
// quota mode
|
||||||
char mode = yb_quota_mode.GetString ()[0];
|
char mode = yb_quota_mode.GetString ()[0];
|
||||||
|
|
||||||
|
|
@ -1692,4 +1692,4 @@ void BotManager::SelectLeaderEachTeam (int team, bool reset)
|
||||||
bot->RadioMessage (Radio_FollowMe);
|
bot->RadioMessage (Radio_FollowMe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue