summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-07 10:26:19 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-07 10:26:19 +0100
commit46a68d468ce514efd50569369ffb21ad22e06727 (patch)
tree79e91565e8d9edf603aafd67163236bf546bfaaa /core/src/ch/asynk/tankontank
parent421491e3e4a886d0c5506469077673ffaadbc17e (diff)
downloadRustAndDust-46a68d468ce514efd50569369ffb21ad22e06727.zip
RustAndDust-46a68d468ce514efd50569369ffb21ad22e06727.tar.gz
StateSelect: unselect hex after quick action check
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;