diff --git a/regamedll/dlls/bot/cs_bot_manager.cpp b/regamedll/dlls/bot/cs_bot_manager.cpp index c21c6ebe..7a57339a 100644 --- a/regamedll/dlls/bot/cs_bot_manager.cpp +++ b/regamedll/dlls/bot/cs_bot_manager.cpp @@ -783,6 +783,15 @@ bool CCSBotManager::BotAddCommand(BotProfileTeamType team, bool isFromConsole) if (!profile) { CONSOLE_ECHO("All bot profiles at this difficulty level are in use.\n"); + +#ifdef REGAMEDLL_FIXES + // decrease the bot quota + if (!isFromConsole) + { + CVAR_SET_FLOAT("bot_quota", cv_bot_quota.value - 1); + } +#endif + return true; } } @@ -820,7 +829,10 @@ bool CCSBotManager::BotAddCommand(BotProfileTeamType team, bool isFromConsole) else { // decrease the bot quota - CVAR_SET_FLOAT("bot_quota", cv_bot_quota.value - 1); + if (!isFromConsole) + { + CVAR_SET_FLOAT("bot_quota", cv_bot_quota.value - 1); + } } #endif