This commit is contained in:
Anuken
2021-03-25 12:51:24 -04:00
parent d10123295c
commit 7924d9b9ef
2 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ public class AIController implements UnitController{
if(tile == targetTile || (costType == Pathfinder.costNaval && !targetTile.floor().isLiquid)) return;
unit.moveAt(vec.trns(unit.angleTo(targetTile), unit.speed()));
unit.moveAt(vec.trns(unit.angleTo(targetTile.worldx(), targetTile.worldy()), unit.speed()));
}
protected void updateWeapons(){