From 13b64acd93d541acd2ca232e2342833ac9b7f705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 Dec 2015 23:53:12 +0100 Subject: SelectState: no HQ activation step when not needed --- core/src/ch/asynk/rustanddust/game/states/StateSelect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1-2-g2b99