diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java index 63f1e0d..c4078e2 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -101,6 +101,10 @@ public class StateMove extends StateCommon public void touchUp() { if (upHex == activeUnit.getHex()) { + if (to !=null) + map.hidePath(to); + to = null; + map.possiblePaths.clear(); ctrl.setState(StateType.ROTATE); return; } |