summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-07 20:53:29 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-07 20:53:29 +0200
commit0825ba66e14db1ff93c5b62da89cac856bf24266 (patch)
tree01de7eb76ad3fbd1a6d4883f1eb0dbc6f0bb7606 /core
parent029673debb134f8e79ab5c070025bd1489ce0d51 (diff)
downloadRustAndDust-0825ba66e14db1ff93c5b62da89cac856bf24266.zip
RustAndDust-0825ba66e14db1ff93c5b62da89cac856bf24266.tar.gz
GameStateDirection: clear all
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateDirection.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java b/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java
index 581a987..c82b96b 100644
--- a/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java
+++ b/core/src/ch/asynk/tankontank/game/states/GameStateDirection.java
@@ -32,12 +32,17 @@ public class GameStateDirection extends GameStateCommon
@Override
public void abort()
{
- super.abort();
clear();
+ super.abort();
}
private void clear()
{
map.enableFinalPath(tmp, false);
+ map.enableMoveAssist(false);
+ if (to.x != -1) unselectHex(to);
+ if (from.x != -1) unselectHex(to);
+ to.set(-1, -1);
+ from.set(-1, -1);
}
}