[performance] initialize server and bots fase

This commit is contained in:
bash
2024-10-29 10:57:26 +00:00
parent 3cd68c6dec
commit 8a9c25c72c
5 changed files with 38 additions and 34 deletions

View File

@@ -4219,8 +4219,7 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
{
// no activity allowed during bot initialization during first
// few minutes after starting the server based on maxRandomBots.
if (!sRandomPlayerbotMgr->isBotInitCompleted() &&
GameTime::GetUptime().count() < sPlayerbotAIConfig->maxRandomBots * 0.15)
if (sRandomPlayerbotMgr->isBotInitializing())
return false;
// General exceptions