diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateDeployment.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateReinforcement.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java index a8c3030..14c015e 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java @@ -99,10 +99,10 @@ public class StateDeployment extends StateCommon selectedUnit = unit; selectedHex = hex; ctrl.battle.getPlayer().reinforcement.remove(unit); - map.showOnBoard(unit, upHex, entryZone.orientation); + map.showOnBoard(unit, hex, entryZone.orientation); deployedUnits.add(unit); entryZone.enable(Hex.AREA, false); - showRotation(unit, upHex); + showRotation(unit, hex); ctrl.hud.update(); } diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReinforcement.java b/core/src/ch/asynk/rustanddust/game/states/StateReinforcement.java index 846adce..304e2b5 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateReinforcement.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateReinforcement.java @@ -67,13 +67,13 @@ public class StateReinforcement extends StateCommon entryZone.enable(Hex.AREA, true); } - private void unitEnter(Unit unit) + private void unitEnter(Unit unit, Hex hex) { selectedUnit = unit; - selectedHex = upHex; + selectedHex = hex; map.hexSelect(selectedHex); entryZone.enable(Hex.AREA, false); - if (map.enterBoard(unit, upHex, entryZone.allowedMoves)) { + if (map.enterBoard(unit, hex, entryZone.allowedMoves)) { if (unit.getMovementPoints() > 0) ctrl.setState(StateType.MOVE); else |