From 5df5b2d5f9645df0837c9f134eca992c4b734280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 10 May 2016 16:47:34 +0200 Subject: Ctrl: clear orders before storing Initial State, do not replay map deployment --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.1-2-g2b99