diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateSelect.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java index 7573132..fa3711d 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java +++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java @@ -51,13 +51,14 @@ public class StateSelect extends StateCommon @Override public void touchDown() { - if (selectedHex != null) - map.unselectHex(selectedHex); } @Override public void touchUp() { + if (selectedHex != null) + map.unselectHex(selectedHex); + if (!isEnemy) { if (map.possibleMoves.contains(upHex)) { // quick move |