summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-14 11:46:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-14 11:46:14 +0100
commit06761104648bbc14a74cedde4b2e00e1553e4e61 (patch)
treee5283d4e5217dbf8e7d481874f557efa2a2ea05a /core/src/ch/asynk
parentab6b425a665386335a6c2c54616498eb08e0b5e6 (diff)
downloadRustAndDust-06761104648bbc14a74cedde4b2e00e1553e4e61.zip
RustAndDust-06761104648bbc14a74cedde4b2e00e1553e4e61.tar.gz
StateDeployment: fix missing or extra SET orders
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateDeployment.java8
1 files 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;