From ab17e91ee41b1caea98179d379711cda7b69201c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 5 Nov 2014 17:22:13 +0100 Subject: StateRotate: allow again rotation in the same direction to fix entry move --- core/src/ch/asynk/tankontank/game/states/StateRotate.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java index 2a90eeb..2e3b266 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java +++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java @@ -55,7 +55,8 @@ public class StateRotate extends StateCommon o = Orientation.fromAdj(to.getCol(), to.getRow(), downHex.getCol(), downHex.getRow()); if (o == Orientation.KEEP) return; - if (rotateOnly && (o == activeUnit.getOrientation())) return; + // FIXME this fucks up entry of 1MP pawns + // if (rotateOnly && (o == activeUnit.getOrientation())) return; rotationSet = true; -- cgit v1.1-2-g2b99