diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-28 23:53:35 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-28 23:53:35 +0100 |
commit | 7445e339b45c865fd00dabb67db5f231b6149bcf (patch) | |
tree | dba1a4aa6610d1b441141888ff373b435a3c061d /core/src/ch/asynk | |
parent | 0e88585c271f77bda99b6f8eadb078cc4f58e233 (diff) | |
download | RustAndDust-7445e339b45c865fd00dabb67db5f231b6149bcf.zip RustAndDust-7445e339b45c865fd00dabb67db5f231b6149bcf.tar.gz |
StateSelect: allow quit rotate or HQ activation if unit.canMove()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateSelect.java | 2 |
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); |