mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
[performance] initialize server and bots fase
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user