From 645bc4948e78f20a02cdbb2638ca0c67cbae75b1 Mon Sep 17 00:00:00 2001 From: bash Date: Wed, 30 Oct 2024 01:49:42 +0000 Subject: [PATCH] [performance] side-effect of other bug causes to stay inactive when botAmount min/max not equal --- src/RandomPlayerbotMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 4fa098be..ca9049ec 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -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.