diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 12:52:15 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 12:52:15 +0100 |
commit | 74f489c424a19bad3e6c76a8cd2f18e59ba2e70a (patch) | |
tree | 921d93044d4b08189c9b867e03f8b6d6d7c0fb7f /core/src | |
parent | cf2b8d408b1bbe51a7aa8e3b93bde8f3b4af78c0 (diff) | |
download | RustAndDust-74f489c424a19bad3e6c76a8cd2f18e59ba2e70a.zip RustAndDust-74f489c424a19bad3e6c76a8cd2f18e59ba2e70a.tar.gz |
StateMove: do not call possiblePaths.clear() when leaving, might be needed in next State
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java index cbacef5..b3ba2d6 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -11,6 +11,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 @@ -40,7 +41,6 @@ public class StateMove extends StateCommon activeUnit.hideMoveable(); map.hidePossibleMoves(); map.unselectHex(activeUnit.getHex()); - map.possiblePaths.clear(); if (to != null) { map.hideFinalPath(to); } |