summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-11 15:59:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-11 15:59:21 +0200
commit1c30be602ad1f3a734a34b53ce476bc59395b306 (patch)
tree3f2e2812a54308c22f5dedefd23660a1c034f306 /core/src/ch/asynk/rustanddust
parent1c7268b49e3937a69d39d281e8077f4abc36c1d2 (diff)
downloadRustAndDust-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.java2
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();
}