From 4aaf3b228786b99838e228ffe50dd9cab3c225b9 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 9 Jan 2024 12:17:11 -0500 Subject: [PATCH] Use movePref for circling --- core/src/mindustry/entities/units/AIController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/units/AIController.java b/core/src/mindustry/entities/units/AIController.java index 963fb67933..2c638bec76 100644 --- a/core/src/mindustry/entities/units/AIController.java +++ b/core/src/mindustry/entities/units/AIController.java @@ -277,7 +277,7 @@ public class AIController implements UnitController{ vec.setLength(prefSpeed()); - unit.moveAt(vec); + unit.movePref(vec); } public void circle(Position target, float circleLength){ @@ -295,7 +295,7 @@ public class AIController implements UnitController{ vec.setLength(speed); - unit.moveAt(vec); + unit.movePref(vec); } public void moveTo(Position target, float circleLength){