diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-10 16:47:34 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-10 16:47:34 +0200 |
commit | 5df5b2d5f9645df0837c9f134eca992c4b734280 (patch) | |
tree | ccd4829a492b5a5265ca95fe58b27ba86368e8f0 /core/src/ch | |
parent | d63375eb57ebaaa5721ef8c9edbfb1a9ae11e931 (diff) | |
download | RustAndDust-5df5b2d5f9645df0837c9f134eca992c4b734280.zip RustAndDust-5df5b2d5f9645df0837c9f134eca992c4b734280.tar.gz |
Ctrl: clear orders before storing Initial State, do not replay map deployment
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 4 |
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; |