mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-05-03 18:39:29 +03:00
always consider all human players on the server to use bot_auto_vacate correctly
This commit is contained in:
parent
3efc5ad166
commit
8a77bba94d
@ -889,12 +889,10 @@ void CCSBotManager::MaintainBotQuota()
|
|||||||
if (m_isLearningMap)
|
if (m_isLearningMap)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int totalHumansInGame = UTIL_HumansInGame();
|
int humanPlayersInGame = UTIL_HumansInGame();
|
||||||
int humanPlayersInGame = UTIL_HumansInGame(IGNORE_SPECTATORS);
|
|
||||||
int spectatorPlayersInGame = UTIL_SpectatorsInGame();
|
|
||||||
|
|
||||||
// don't add bots until local player has been registered, to make sure he's player ID #1
|
// don't add bots until local player has been registered, to make sure he's player ID #1
|
||||||
if (!IS_DEDICATED_SERVER() && totalHumansInGame == 0)
|
if (!IS_DEDICATED_SERVER() && humanPlayersInGame == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int desiredBotCount = int(cv_bot_quota.value);
|
int desiredBotCount = int(cv_bot_quota.value);
|
||||||
@ -949,7 +947,7 @@ void CCSBotManager::MaintainBotQuota()
|
|||||||
// wait for a player to join, if necessary
|
// wait for a player to join, if necessary
|
||||||
if (cv_bot_join_after_player.value > 0.0)
|
if (cv_bot_join_after_player.value > 0.0)
|
||||||
{
|
{
|
||||||
if (humanPlayersInGame == 0 && spectatorPlayersInGame == 0)
|
if (humanPlayersInGame == 0)
|
||||||
desiredBotCount = 0;
|
desiredBotCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user