engine depth

This commit is contained in:
Yunfan Li
2023-08-24 22:04:00 +08:00
parent 3b85e3e4b9
commit 0437d73eb9

View File

@@ -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