summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-15 11:43:55 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-15 11:43:55 +0200
commit8337a9748f83690781060bfe91495576a87ad5a8 (patch)
treeb2725e8f254109d345610fe4bae5523eee894924 /core/src/ch/asynk/tankontank
parentaf7b8efbf3962624514315f2a108c1659f364d02 (diff)
downloadRustAndDust-8337a9748f83690781060bfe91495576a87ad5a8.zip
RustAndDust-8337a9748f83690781060bfe91495576a87ad5a8.tar.gz
StatSelect: clear all on abort
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateSelect.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
index 58aad88..556148c 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
@@ -73,6 +73,9 @@ public class StateSelect extends StateCommon
@Override
public void abort()
{
+ if (selectedHex.x != -1) map.selectHex(selectedHex, false);
+ map.hidePossibleTargetsMovesAssists();
+ clearAll();
}
@Override