mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Merge pull request #656 from hermensbas/feature/performance_old_broken_calc_breaks_functionalitiy
[performance] bots kept idle always instead only during server/bots initialization as side-effect of another bug
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user