summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-07 10:27:40 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-07 10:27:40 +0100
commitf6b705cc0b57add7b7c33f186542dc980c6124ef (patch)
treefc7fff483bfe8cad52fb42d65bb58153d2ec1bed /core/src/ch/asynk/tankontank/game
parent58f155022dc0cd9e3f2edfdcc23e24e4f9771b13 (diff)
downloadRustAndDust-f6b705cc0b57add7b7c33f186542dc980c6124ef.zip
RustAndDust-f6b705cc0b57add7b7c33f186542dc980c6124ef.tar.gz
StateMove: on self select, clear all before switching to ROTATE state
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java4
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;
}