diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 15:00:18 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 15:00:18 +0100 |
commit | 48f89c3783c2a08fcc0bbce88f06421dd93344de (patch) | |
tree | 9ecabf0cdcc348e66de8d947cad9e95ff7bbda54 /core/src/ch/asynk/tankontank/game | |
parent | 7804deadfeb3ffe21938df1b2d23ba5bbf4652b3 (diff) | |
download | RustAndDust-48f89c3783c2a08fcc0bbce88f06421dd93344de.zip RustAndDust-48f89c3783c2a08fcc0bbce88f06421dd93344de.tar.gz |
StateDeployment: fix entryZone null, do nothing if rotation -> Orientation.KEEP
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateDeployment.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java index 63a2087..91b5bd5 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java +++ b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java @@ -124,9 +124,8 @@ public class StateDeployment extends StateCommon map.unselectHex(selectedHex); map.hideDirections(selectedHex); - if (o == Orientation.KEEP) - o = entryZone.orientation; - map.setOnBoard(selectedUnit, selectedHex, o); + if (o != Orientation.KEEP) + map.setOnBoard(selectedUnit, selectedHex, o); ctrl.hud.actionButtons.hide(); ctrl.hud.playerInfo.unitDock.show(); |