From 83ae7a7bd547ab571449a654b47e60fa6bf9e8c1 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Fri, 12 Jul 2024 23:46:58 +0200 Subject: [PATCH] fixed: Bots are now able to join LFG - Missing worker activation implemented --- src/RandomPlayerbotMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 334b6499..ae9a0c60 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -384,6 +384,12 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/) activateCheckBgQueueThread(); } + if (sPlayerbotAIConfig->randomBotJoinLfg/* && !players.empty()*/) + { + if (time(nullptr) > (LfgCheckTimer + 30)) + activateCheckLfgQueueThread(); + } + uint32 updateBots = sPlayerbotAIConfig->randomBotsPerInterval * onlineBotFocus / 100; uint32 maxNewBots = onlineBotCount < maxAllowedBotCount ? maxAllowedBotCount - onlineBotCount : 0; uint32 loginBots = std::min(sPlayerbotAIConfig->randomBotsPerInterval - updateBots, maxNewBots);