diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-11 00:53:48 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-11 00:53:48 +0100 |
commit | 11dbbe1f3a22524de9bea7c3485cf2bf87e7cbfb (patch) | |
tree | a0db5e9d6c8b4d537523e5f041a95bff6ac26d10 /core/src/ch | |
parent | 9f7ff7e3a739c2b8a657bfc154bdd9a6d5cb3f0c (diff) | |
download | RustAndDust-11dbbe1f3a22524de9bea7c3485cf2bf87e7cbfb.zip RustAndDust-11dbbe1f3a22524de9bea7c3485cf2bf87e7cbfb.tar.gz |
StateEntry: unselect selectedHex
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateEntry.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEntry.java b/core/src/ch/asynk/tankontank/game/states/StateEntry.java index 21dc3f5..f836b53 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateEntry.java +++ b/core/src/ch/asynk/tankontank/game/states/StateEntry.java @@ -17,6 +17,8 @@ public class StateEntry extends StateCommon @Override public void enter(boolean fromSelect) { + if (selectedHex != null) + map.unselectHex(selectedHex); activeUnit = ctrl.hud.playerInfo.getDockUnit(); entryPoint = ctrl.battle.getEntryPoint(activeUnit); entryPoint.enable(Hex.AREA, true); |