summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-09 23:53:12 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-09 23:53:12 +0100
commit13b64acd93d541acd2ca232e2342833ac9b7f705 (patch)
treecaa352c1ab86102df7961894de12cb1c604d1ab7 /core/src/ch/asynk
parent46cbb5e2a1a246594fa35b72a53b1a1c76980278 (diff)
downloadRustAndDust-13b64acd93d541acd2ca232e2342833ac9b7f705.zip
RustAndDust-13b64acd93d541acd2ca232e2342833ac9b7f705.tar.gz
SelectState: no HQ activation step when not needed
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateSelect.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
index 1a7dce2..f7914ee 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
@@ -87,7 +87,7 @@ public class StateSelect extends StateCommon
isEnemy = ctrl.battle.getPlayer().isEnemy(unit);
if (!isEnemy && (unit == selectedUnit) && unit.canMove()) {
- if (unit.isHq()) {
+ if (unit.isHq() && (map.unitsMoveableSize() > 1)) {
ctrl.hud.notify("HQ activation");
select(upHex, unit, isEnemy);
ctrl.setState(StateType.MOVE);