summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-31 15:51:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-31 15:51:42 +0100
commit59dd821339a58e4d4cd50b6ffa7e6149eea9acd5 (patch)
tree122fa899de57d23dd5dbb405e45d876c22f35b3f /core/src/ch/asynk/tankontank
parentea211dc3b942c26874fecf6812d4894a364dfc07 (diff)
downloadRustAndDust-59dd821339a58e4d4cd50b6ffa7e6149eea9acd5.zip
RustAndDust-59dd821339a58e4d4cd50b6ffa7e6149eea9acd5.tar.gz
StateMove: must call map.possiblePaths.clear() on enter
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java1
1 files changed, 1 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 89d7535..f1e09f8 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -12,6 +12,7 @@ public class StateMove extends StateCommon
boolean moreThanOne = ((map.moveablePawns.size() + map.activatedPawns.size()) > 1);
ctrl.hud.show(false, true, true, false, moreThanOne, ctrl.cfg.canCancel);
ctrl.hud.moveBtn.setOn();
+ map.possiblePaths.clear();
if (fromSelect) {
// use selectedHex and selectedUnit