summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateRotate.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateRotate.java b/core/src/ch/asynk/rustanddust/game/states/StateRotate.java
index b3159f5..2e9b520 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateRotate.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateRotate.java
@@ -22,7 +22,7 @@ public class StateRotate extends StateCommon
map.pathsBuild(to);
}
- if (map.pathsSize() != 1)
+ if (map.pathsSize() > 1)
RustAndDust.debug("ERROR: pathsSize() == " + map.pathsSize());
rotateOnly = (to == activeUnit.getHex());
@@ -64,6 +64,9 @@ public class StateRotate extends StateCommon
@Override
public StateType execute()
{
+ if (!rotationSet)
+ return StateType.DONE;
+
StateType whenDone = StateType.DONE;
if (map.moveUnit(activeUnit) > 0)