From 1c30be602ad1f3a734a34b53ce476bc59395b306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 11 May 2016 15:59:21 +0200 Subject: Ctrl: call storeInitialState() on new game only --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 46b7cce..337f87f 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -415,7 +415,7 @@ public abstract class Ctrl implements Disposable if (mode == Mode.LOADING) { mode = ((stateAfterAnimation == StateType.REPLAY) ? Mode.REPLAY : Mode.PLAY); - if (mode == Mode.PLAY) { + if ((battle.getTurnCount() == 0) && (mode == Mode.PLAY)) { map.clear(); storeInitialState(); } -- cgit v1.1-2-g2b99