diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-30 08:07:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-30 08:07:35 +0200 |
commit | 0f3da1e779905a5c10fdeca62d7f2cea6b622e80 (patch) | |
tree | 61a1af05f9ac29ce0c1e524a57e082457f913c86 /core/src/ch | |
parent | 4f84534c90de8c47fedb2388c8e28feffbb6d6fa (diff) | |
download | RustAndDust-0f3da1e779905a5c10fdeca62d7f2cea6b622e80.zip RustAndDust-0f3da1e779905a5c10fdeca62d7f2cea6b622e80.tar.gz |
StateReplay: clear order when finished
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateReplay.java | 4 |
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(); |