yb_quota_max fix, when no humans on server
This commit is contained in:
parent
3113935751
commit
cbb3307da0
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ void BotManager::MaintainBotQuota (void)
|
||||||
if (botNumber > yb_quota.GetInt ())
|
if (botNumber > yb_quota.GetInt ())
|
||||||
RemoveRandom ();
|
RemoveRandom ();
|
||||||
|
|
||||||
if (yb_quota_match.GetInt () > 0)
|
if (humanNumber > 0 && yb_quota_match.GetInt () > 0)
|
||||||
{
|
{
|
||||||
int num = yb_quota_match.GetInt () * humanNumber;
|
int num = yb_quota_match.GetInt () * humanNumber;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue