From af71006f3f2b5654ccb01dddedff56205316b389 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 16 Nov 2023 09:58:25 -0500 Subject: [PATCH] Removed flowfield time restrictions --- core/src/mindustry/ai/HierarchyPathFinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ai/HierarchyPathFinder.java b/core/src/mindustry/ai/HierarchyPathFinder.java index b77badf5e0..0c4ec1f695 100644 --- a/core/src/mindustry/ai/HierarchyPathFinder.java +++ b/core/src/mindustry/ai/HierarchyPathFinder.java @@ -22,8 +22,8 @@ import static mindustry.ai.Pathfinder.*; //https://webdocs.cs.ualberta.ca/~mmueller/ps/hpastar.pdf //https://www.gameaipro.com/GameAIPro/GameAIPro_Chapter23_Crowd_Pathfinding_and_Steering_Using_Flow_Field_Tiles.pdf public class HierarchyPathFinder implements Runnable{ - private static final long maxUpdate = 100;//Time.millisToNanos(12); - private static final int updateStepInterval = 20;//200; + private static final long maxUpdate = Time.millisToNanos(12); + private static final int updateStepInterval = 200; private static final int updateFPS = 30; private static final int updateInterval = 1000 / updateFPS, invalidateCheckInterval = 1000;