summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-26 23:30:38 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-26 23:30:38 +0100
commitefabbccea93ea662a7f31301be11cbf2e2d67ad7 (patch)
treed632ae718de3cb58ee70113e72b60d4a5f75e0e6
parentddd46148fa83a7e071567dce1bb55e84e903b12a (diff)
downloadRustAndDust-efabbccea93ea662a7f31301be11cbf2e2d67ad7.zip
RustAndDust-efabbccea93ea662a7f31301be11cbf2e2d67ad7.tar.gz
StateRotate: hide move assists on enter if option is off
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateRotate.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateRotate.java b/core/src/ch/asynk/rustanddust/game/states/StateRotate.java
index 0331cdb..fece24d 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateRotate.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateRotate.java
@@ -14,6 +14,8 @@ public class StateRotate extends StateCommon
@Override
public void enter(StateType prevState)
{
+ if (!cfg.showMoveAssists) map.unitsMoveableHide();
+
if (activeUnit == null)
activeUnit = selectedUnit;
if (to == null)