summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-10 16:47:34 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-10 16:47:34 +0200
commit5df5b2d5f9645df0837c9f134eca992c4b734280 (patch)
treeccd4829a492b5a5265ca95fe58b27ba86368e8f0 /core
parentd63375eb57ebaaa5721ef8c9edbfb1a9ae11e931 (diff)
downloadRustAndDust-5df5b2d5f9645df0837c9f134eca992c4b734280.zip
RustAndDust-5df5b2d5f9645df0837c9f134eca992c4b734280.tar.gz
Ctrl: clear orders before storing Initial State, do not replay map deployment
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 126d456..2f88b43 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -415,8 +415,10 @@ public abstract class Ctrl implements Disposable
if (mode == Mode.LOADING) {
this.mode = ((stateAfterAnimation == StateType.REPLAY) ? Mode.REPLAY : Mode.PLAY);
- if (mode == Mode.PLAY)
+ if (mode == Mode.PLAY) {
+ map.clear();
storeInitialState();
+ }
}
this.blockMap = false;