summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-05 12:52:15 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-05 12:52:15 +0100
commit74f489c424a19bad3e6c76a8cd2f18e59ba2e70a (patch)
tree921d93044d4b08189c9b867e03f8b6d6d7c0fb7f /core/src/ch/asynk
parentcf2b8d408b1bbe51a7aa8e3b93bde8f3b4af78c0 (diff)
downloadRustAndDust-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/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java2
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);
}