summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-28 23:53:35 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-28 23:53:35 +0100
commit7445e339b45c865fd00dabb67db5f231b6149bcf (patch)
treedba1a4aa6610d1b441141888ff373b435a3c061d /core/src
parent0e88585c271f77bda99b6f8eadb078cc4f58e233 (diff)
downloadRustAndDust-7445e339b45c865fd00dabb67db5f231b6149bcf.zip
RustAndDust-7445e339b45c865fd00dabb67db5f231b6149bcf.tar.gz
StateSelect: allow quit rotate or HQ activation if unit.canMove()
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateSelect.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
index d097e0f..14d0d1b 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java
@@ -88,7 +88,7 @@ public class StateSelect extends StateCommon
}
isEnemy = ctrl.player.isEnemy(unit);
- if (!isEnemy && (unit == selectedUnit)) {
+ if (!isEnemy && (unit == selectedUnit) && unit.canMove()) {
if (unit.isHq()) {
ctrl.hud.notify("HQ activation");
select(upHex, unit, isEnemy);