From 74f489c424a19bad3e6c76a8cd2f18e59ba2e70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 5 Nov 2014 12:52:15 +0100 Subject: StateMove: do not call possiblePaths.clear() when leaving, might be needed in next State --- core/src/ch/asynk/tankontank/game/states/StateMove.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1-2-g2b99