summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java
index 32050a2..be09ed6 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -133,7 +133,8 @@ public class StateMove extends StateCommon
{
if (activeUnit != null ) {
map.unselectHex(activeUnit.getHex());
- activeUnit.enableOverlay(Unit.MOVE, true);
+ if (activeUnit.canMove())
+ activeUnit.enableOverlay(Unit.MOVE, true);
}
activeUnit = unit;
Hex hex = activeUnit.getHex();