diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateEngage.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateEngage.java b/core/src/ch/asynk/rustanddust/game/states/StateEngage.java index 267d4d5..56e0fd2 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateEngage.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateEngage.java @@ -9,15 +9,9 @@ public class StateEngage extends StateCommon @Override public void enterFrom(StateType prevState) { - map.unitsTargetClear(); - - // activeUnit is the target if (prevState == StateType.SELECT) { + // activeUnit will be target activeUnit = null; - // use selectedHex and selectedUnit - map.unitsTargetHide(); - map.collectTargets(selectedUnit, ctrl.battle.getOpponent().units); - map.unitsTargetShow(); if (to != null) { // quick fire -> replay touchUp touch(to); |