mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
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:
parent
b5e7da84b7
commit
565e9cd2b2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user