diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-07 10:27:40 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-07 10:27:40 +0100 |
commit | f6b705cc0b57add7b7c33f186542dc980c6124ef (patch) | |
tree | fc7fff483bfe8cad52fb42d65bb58153d2ec1bed /core/src/ch | |
parent | 58f155022dc0cd9e3f2edfdcc23e24e4f9771b13 (diff) | |
download | RustAndDust-f6b705cc0b57add7b7c33f186542dc980c6124ef.zip RustAndDust-f6b705cc0b57add7b7c33f186542dc980c6124ef.tar.gz |
StateMove: on self select, clear all before switching to ROTATE state
Diffstat (limited to 'core/src/ch')
-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; } |