From 0437d73eb9fdc5c3cec7400ae4ea025d5058fb27 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Thu, 24 Aug 2023 22:04:00 +0800 Subject: [PATCH] engine depth --- src/strategy/Engine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/strategy/Engine.cpp b/src/strategy/Engine.cpp index 57b3a144..6c86c23a 100644 --- a/src/strategy/Engine.cpp +++ b/src/strategy/Engine.cpp @@ -261,8 +261,9 @@ bool Engine::DoNextAction(Unit* unit, uint32 depth, bool minimal) lastRelevance = 0.0f; PushDefaultActions(); - // if (queue.Peek() && depth < 1 && !minimal) - // return DoNextAction(unit, depth + 1, minimal); + // prevent the delay after pushing default actions + if (queue.Peek() && depth < 1 && !minimal) + return DoNextAction(unit, depth + 1, minimal); } // MEMORY FIX TEST