diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-31 15:51:42 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-31 15:51:42 +0100 |
commit | 59dd821339a58e4d4cd50b6ffa7e6149eea9acd5 (patch) | |
tree | 122fa899de57d23dd5dbb405e45d876c22f35b3f /core | |
parent | ea211dc3b942c26874fecf6812d4894a364dfc07 (diff) | |
download | RustAndDust-59dd821339a58e4d4cd50b6ffa7e6149eea9acd5.zip RustAndDust-59dd821339a58e4d4cd50b6ffa7e6149eea9acd5.tar.gz |
StateMove: must call map.possiblePaths.clear() on enter
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 1 |
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 |