Fixed ucontrol approach not applied to ground units (#7340)

This commit is contained in:
BlackDeluxeCat 2022-08-10 20:06:12 +08:00 committed by GitHub
parent 592e4b2f29
commit 5e63b89f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ public class LogicAI extends AIController{
moveTo(Tmp.v1.set(moveX, moveY), 1f, 30f);
}
case approach -> {
moveTo(Tmp.v1.set(moveX, moveY), moveRad - 7f, 7);
moveTo(Tmp.v1.set(moveX, moveY), moveRad - 7f, 7, true, null);
}
case stop -> {
unit.clearBuilding();