[performance] side-effect of other bug causes to stay inactive when botAmount min/max not equal

This commit is contained in:
bash
2024-10-30 01:49:42 +00:00
parent e66475c3e0
commit 645bc4948e

View File

@@ -315,8 +315,8 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/)
}
setBotInitializing(
onlineBotCount < maxAllowedBotCount &&
GameTime::GetUptime().count() < sPlayerbotAIConfig->maxRandomBots * 0.15);
//onlineBotCount < maxAllowedBotCount && <-- these fields are incorrect when using bot amount min/max are not equal.
GameTime::GetUptime().count() < sPlayerbotAIConfig->maxRandomBots * 0.12);
// when server is balancing bots then boost (decrease value of) the nextCheckDelay till
// onlineBotCount reached the AllowedBotCount.