From 639b08196704f1b73e1665d41db52ece172f85d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 Dec 2015 14:00:37 +0100 Subject: Revert "StateSelect: no need of HQ activation extra click" this is needed if you want to move anther unit before the HQ This reverts commit 41aa097a355a37fe930d079ad21c11464222b855. --- core/src/ch/asynk/rustanddust/game/states/StateSelect.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java index 695fb41..1a7dce2 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java @@ -87,9 +87,15 @@ public class StateSelect extends StateCommon isEnemy = ctrl.battle.getPlayer().isEnemy(unit); if (!isEnemy && (unit == selectedUnit) && unit.canMove()) { - // quick rotate - to = upHex; - ctrl.setState(StateType.ROTATE); + if (unit.isHq()) { + ctrl.hud.notify("HQ activation"); + select(upHex, unit, isEnemy); + ctrl.setState(StateType.MOVE); + } else { + // quick rotate + to = upHex; + ctrl.setState(StateType.ROTATE); + } } else { select(upHex, unit, isEnemy); ctrl.hud.notify(selectedUnit.toString()); -- cgit v1.1-2-g2b99