From 06761104648bbc14a74cedde4b2e00e1553e4e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 14 Dec 2015 11:46:14 +0100 Subject: StateDeployment: fix missing or extra SET orders --- core/src/ch/asynk/rustanddust/game/states/StateDeployment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java index d34d0dd..9d5de19 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java @@ -123,10 +123,10 @@ public class StateDeployment extends StateCommon { map.hexUnselect(selectedHex); map.hexDirectionsHide(selectedHex); - - if (o != Orientation.KEEP) - map.setOnBoard(selectedUnit, selectedHex, o); - + map.revertEnter(selectedUnit); + if (o == Orientation.KEEP) + o = selectedUnit.getOrientation(); + map.setOnBoard(selectedUnit, selectedHex, o); ctrl.hud.actionButtons.hide(); ctrl.hud.playerInfo.unitDock.show(); entryZone = null; -- cgit v1.1-2-g2b99