summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateSelect.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
index fa3711d..9d7b84c 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
@@ -56,9 +56,6 @@ public class StateSelect extends StateCommon
@Override
public void touchUp()
{
- if (selectedHex != null)
- map.unselectHex(selectedHex);
-
if (!isEnemy) {
if (map.possibleMoves.contains(upHex)) {
// quick move
@@ -74,6 +71,9 @@ public class StateSelect extends StateCommon
}
}
+ if (selectedHex != null)
+ map.unselectHex(selectedHex);
+
hidePossibilities();
if (upHex.isOffMap()) {
selectedUnit = null;