From a89058e3d1cfb353b9b4df9cae50a5e49303bad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 22 Sep 2022 15:55:08 -0600 Subject: [PATCH] Increase delays for non active bots --- src/PlayerbotAIBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PlayerbotAIBase.cpp b/src/PlayerbotAIBase.cpp index 6ae8329d..2c5503a6 100644 --- a/src/PlayerbotAIBase.cpp +++ b/src/PlayerbotAIBase.cpp @@ -52,8 +52,8 @@ void PlayerbotAIBase::YieldThread(bool delay) if (nextAICheckDelay < sPlayerbotAIConfig->reactDelay) nextAICheckDelay = sPlayerbotAIConfig->reactDelay; - if (delay && nextAICheckDelay <= sPlayerbotAIConfig->reactDelay * 5) - nextAICheckDelay = sPlayerbotAIConfig->reactDelay * 5; + if (delay && nextAICheckDelay <= sPlayerbotAIConfig->reactDelay * 10) + nextAICheckDelay = sPlayerbotAIConfig->reactDelay * 10; } bool PlayerbotAIBase::IsActive()