diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-11 15:59:21 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-11 15:59:21 +0200 |
commit | 1c30be602ad1f3a734a34b53ce476bc59395b306 (patch) | |
tree | 3f2e2812a54308c22f5dedefd23660a1c034f306 /core/src/ch/asynk/rustanddust | |
parent | 1c7268b49e3937a69d39d281e8077f4abc36c1d2 (diff) | |
download | RustAndDust-1c30be602ad1f3a734a34b53ce476bc59395b306.zip RustAndDust-1c30be602ad1f3a734a34b53ce476bc59395b306.tar.gz |
Ctrl: call storeInitialState() on new game only
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |