diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/GameStateDirection.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java b/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java index 581a987..c82b96b 100644 --- a/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java +++ b/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java @@ -32,12 +32,17 @@ public class GameStateDirection extends GameStateCommon @Override public void abort() { - super.abort(); clear(); + super.abort(); } private void clear() { map.enableFinalPath(tmp, false); + map.enableMoveAssist(false); + if (to.x != -1) unselectHex(to); + if (from.x != -1) unselectHex(to); + to.set(-1, -1); + from.set(-1, -1); } } |