diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 19:44:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 19:44:54 +0100 |
commit | cf3e780fd2aa109651e29239bf8a22aa61fa460e (patch) | |
tree | 10d7f78bfe64080877f1a4b4d1d1f18ec6f1d27f /core/src/ch/asynk/tankontank/game | |
parent | ab17e91ee41b1caea98179d379711cda7b69201c (diff) | |
download | RustAndDust-cf3e780fd2aa109651e29239bf8a22aa61fa460e.zip RustAndDust-cf3e780fd2aa109651e29239bf8a22aa61fa460e.tar.gz |
StateRotate: block useless rotation
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateRotate.java | 3 |
1 files changed, 1 insertions, 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; |