mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[performance] side-effect of other bug causes to stay inactive when botAmount min/max not equal
This commit is contained in:
@@ -315,8 +315,8 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
setBotInitializing(
|
setBotInitializing(
|
||||||
onlineBotCount < maxAllowedBotCount &&
|
//onlineBotCount < maxAllowedBotCount && <-- these fields are incorrect when using bot amount min/max are not equal.
|
||||||
GameTime::GetUptime().count() < sPlayerbotAIConfig->maxRandomBots * 0.15);
|
GameTime::GetUptime().count() < sPlayerbotAIConfig->maxRandomBots * 0.12);
|
||||||
|
|
||||||
// when server is balancing bots then boost (decrease value of) the nextCheckDelay till
|
// when server is balancing bots then boost (decrease value of) the nextCheckDelay till
|
||||||
// onlineBotCount reached the AllowedBotCount.
|
// onlineBotCount reached the AllowedBotCount.
|
||||||
|
|||||||
Reference in New Issue
Block a user