diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-07 10:26:19 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-07 10:26:19 +0100 |
commit | 46a68d468ce514efd50569369ffb21ad22e06727 (patch) | |
tree | 79e91565e8d9edf603aafd67163236bf546bfaaa /core | |
parent | 421491e3e4a886d0c5506469077673ffaadbc17e (diff) | |
download | RustAndDust-46a68d468ce514efd50569369ffb21ad22e06727.zip RustAndDust-46a68d468ce514efd50569369ffb21ad22e06727.tar.gz |
StateSelect: unselect hex after quick action check
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateSelect.java | 6 |
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; |