Prevent spam in console if bot_quota is more than spawn points,

so decreases bot_quota every time if create bot fails
This commit is contained in:
s1lent 2017-12-17 19:34:05 +07:00
parent b5e7da84b7
commit 565e9cd2b2
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -797,6 +797,13 @@ bool CCSBotManager::BotAddCommand(BotProfileTeamType team, bool isFromConsole)
CVAR_SET_FLOAT("bot_quota", cv_bot_quota.value + 1);
}
}
#ifdef REGAMEDLL_FIXES
else
{
// decrease the bot quota
CVAR_SET_FLOAT("bot_quota", cv_bot_quota.value - 1);
}
#endif
return true;
}