summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-09 11:40:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-09 11:40:02 +0100
commit41aa097a355a37fe930d079ad21c11464222b855 (patch)
tree9531ad5490f7d2cefb8a68c66aad1a98700ad68c /core/src/ch/asynk/rustanddust
parent037008e2abec0da50f8552b7196bd43f4c221ff3 (diff)
downloadRustAndDust-41aa097a355a37fe930d079ad21c11464222b855.zip
RustAndDust-41aa097a355a37fe930d079ad21c11464222b855.tar.gz
StateSelect: no need of HQ activation extra click
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateSelect.java12
1 files changed, 3 insertions, 9 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..695fb41 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java
@@ -87,15 +87,9 @@ public class StateSelect extends StateCommon
isEnemy = ctrl.battle.getPlayer().isEnemy(unit);
if (!isEnemy && (unit == selectedUnit) && unit.canMove()) {
- 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);
- }
+ // quick rotate
+ to = upHex;
+ ctrl.setState(StateType.ROTATE);
} else {
select(upHex, unit, isEnemy);
ctrl.hud.notify(selectedUnit.toString());