diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateSelect.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java index 839784c..7ce6251 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java +++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java @@ -89,9 +89,14 @@ public class StateSelect extends StateCommon isEnemy = ctrl.player.isEnemy(unit); if (!isEnemy && (unit == selectedUnit)) { - // quick rotate - to = upHex; - ctrl.setState(StateType.ROTATE); + if (unit.isHq()) { + select(upHex, unit, isEnemy); + ctrl.setState(StateType.MOVE); + } else { + // quick rotate + to = upHex; + ctrl.setState(StateType.ROTATE); + } } else { select(upHex, unit, isEnemy); } |