From 4a94c483aa2062e25ffa6dc71b261fad528899d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 16 Nov 2014 01:19:41 +0100 Subject: StateBreak,StateRotate: use upHex in Orientation.fromAdj --- core/src/ch/asynk/tankontank/game/states/StateBreak.java | 2 +- core/src/ch/asynk/tankontank/game/states/StateRotate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/states/StateBreak.java b/core/src/ch/asynk/tankontank/game/states/StateBreak.java index e9af364..6b5dea2 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateBreak.java +++ b/core/src/ch/asynk/tankontank/game/states/StateBreak.java @@ -59,7 +59,7 @@ public class StateBreak extends StateCommon map.hideBreakPawns(); } } else { - o = Orientation.fromAdj(to, downHex); + o = Orientation.fromAdj(to, upHex); if (o == Orientation.KEEP) return; diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java index 50cfce2..c9949ab 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java +++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java @@ -85,7 +85,7 @@ public class StateRotate extends StateCommon { if (rotationSet) return; - o = Orientation.fromAdj(to, downHex); + o = Orientation.fromAdj(to, upHex); if (o == Orientation.KEEP) return; if (!activeUnit.movement.entryMove && rotateOnly && (o == activeUnit.getOrientation())) return; -- cgit v1.1-2-g2b99