mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-04 01:35:23 +03:00
Bot fix (#544)
* fix bot kick * fix flood "All bot profiles at this difficulty level are in use." in console
This commit is contained in:
parent
8142303b1b
commit
36b46bf996
@ -783,6 +783,15 @@ bool CCSBotManager::BotAddCommand(BotProfileTeamType team, bool isFromConsole)
|
|||||||
if (!profile)
|
if (!profile)
|
||||||
{
|
{
|
||||||
CONSOLE_ECHO("All bot profiles at this difficulty level are in use.\n");
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -820,7 +829,10 @@ bool CCSBotManager::BotAddCommand(BotProfileTeamType team, bool isFromConsole)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// decrease the bot quota
|
// 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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user