From 58f155022dc0cd9e3f2edfdcc23e24e4f9771b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 7 Jan 2015 10:26:46 +0100 Subject: StateMove: coding style --- core/src/ch/asynk/tankontank/game/states/StateMove.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java index be09ed6..63f1e0d 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -41,6 +41,7 @@ public class StateMove extends StateCommon changeUnit(map.moveableUnits.get(0)); } } + activeUnit.enableOverlay(Unit.MOVE, false); } @@ -54,9 +55,8 @@ public class StateMove extends StateCommon activeUnit.hideMoveable(); map.hidePossibleMoves(); map.unselectHex(activeUnit.getHex()); - if (to != null) { + if (to != null) map.hidePath(to); - } if (nextState != StateType.SELECT) { if (to == null) -- cgit v1.1-2-g2b99