summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-30 08:07:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-30 08:07:35 +0200
commit0f3da1e779905a5c10fdeca62d7f2cea6b622e80 (patch)
tree61a1af05f9ac29ce0c1e524a57e082457f913c86 /core/src/ch/asynk/rustanddust
parent4f84534c90de8c47fedb2388c8e28feffbb6d6fa (diff)
downloadRustAndDust-0f3da1e779905a5c10fdeca62d7f2cea6b622e80.zip
RustAndDust-0f3da1e779905a5c10fdeca62d7f2cea6b622e80.tar.gz
StateReplay: clear order when finished
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateReplay.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
index 38cf757..fff29e8 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
@@ -11,7 +11,9 @@ public class StateReplay extends StateCommon
{
Order o = map.stepReplay();
if (o == null) {
- ctrl.setState(nextState());
+ StateType nextState = nextState();
+ order = null;
+ ctrl.setState(nextState);
} else {
this.order = o;
setup();