diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateRotate.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java index aa427ab..8b53221 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java +++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java @@ -82,6 +82,11 @@ public class StateRotate extends StateCommon @Override public void touchUp() { + if (upHex == activeUnit.getHex()) { + ctrl.setState(StateType.ABORT); + return; + } + if (rotationSet) return; o = Orientation.fromAdj(to, upHex); |