summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-21 23:34:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-21 23:34:03 +0100
commit575e91afd929dfd12ffd1eec70b468f22450746b (patch)
tree579cf15f6796d60e0a8785f1c0c64386e432a9b8 /core
parent83f7745d39592cbb6e61283f0513afa1bd6cb0ab (diff)
downloadRustAndDust-575e91afd929dfd12ffd1eec70b468f22450746b.zip
RustAndDust-575e91afd929dfd12ffd1eec70b468f22450746b.tar.gz
StateWithdraw: fix rotation move detection
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateWithdraw.java3
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;