From cf3e780fd2aa109651e29239bf8a22aa61fa460e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 5 Nov 2014 19:44:54 +0100 Subject: StateRotate: block useless rotation --- core/src/ch/asynk/tankontank/game/states/StateRotate.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java index 2e3b266..1b682c8 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java +++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java @@ -55,8 +55,7 @@ public class StateRotate extends StateCommon o = Orientation.fromAdj(to.getCol(), to.getRow(), downHex.getCol(), downHex.getRow()); if (o == Orientation.KEEP) return; - // FIXME this fucks up entry of 1MP pawns - // if (rotateOnly && (o == activeUnit.getOrientation())) return; + if (!activeUnit.move.entryMove && rotateOnly && (o == activeUnit.getOrientation())) return; rotationSet = true; -- cgit v1.1-2-g2b99