diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-21 23:34:03 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-21 23:34:03 +0100 |
commit | 575e91afd929dfd12ffd1eec70b468f22450746b (patch) | |
tree | 579cf15f6796d60e0a8785f1c0c64386e432a9b8 | |
parent | 83f7745d39592cbb6e61283f0513afa1bd6cb0ab (diff) | |
download | RustAndDust-575e91afd929dfd12ffd1eec70b468f22450746b.zip RustAndDust-575e91afd929dfd12ffd1eec70b468f22450746b.tar.gz |
StateWithdraw: fix rotation move detection
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateWithdraw.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateWithdraw.java b/core/src/ch/asynk/tankontank/game/states/StateWithdraw.java index df2e0ce..43c38cc 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateWithdraw.java +++ b/core/src/ch/asynk/tankontank/game/states/StateWithdraw.java @@ -49,7 +49,8 @@ public class StateWithdraw extends StateCommon Zone exitZone = ctrl.battle.getExitZone(unit); Hex hex = unit.getHex(); - if (selectedHex == hex) + // rotation + if (map.pathBuilder.to == null) map.pathBuilder.build(hex); Hex exitHex = (Hex) map.pathBuilder.to; |