diff options
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Orientation.java')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Orientation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Orientation.java b/core/src/ch/asynk/gdx/boardgame/Orientation.java index 8450dff..2d24603 100644 --- a/core/src/ch/asynk/gdx/boardgame/Orientation.java +++ b/core/src/ch/asynk/gdx/boardgame/Orientation.java @@ -102,6 +102,6 @@ public enum Orientation public static Orientation fromTiles(Tile from, Tile to) { - return fromR(MathUtils.atan2((to.y - from.y), (to.x - from.x)) * MathUtils.radiansToDegrees); + return fromR(MathUtils.atan2((to.cy - from.cy), (to.cx - from.cx)) * MathUtils.radiansToDegrees); } } |