diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-29 12:01:13 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-29 12:01:13 +0200 |
commit | 379c5aca8e138bbbbd1e530cf0ecf73c9d49a553 (patch) | |
tree | e585a4442cde122f90e570acd916036c6cca48ed /core/src/ch/asynk/rustanddust/game/ctrl | |
parent | c1ae3706233bb2abff79e7b4c8673bb01539f26d (diff) | |
download | RustAndDust-379c5aca8e138bbbbd1e530cf0ecf73c9d49a553.zip RustAndDust-379c5aca8e138bbbbd1e530cf0ecf73c9d49a553.tar.gz |
Ctrl: replay last order on resume if not synched
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/ctrl')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index ec020a5..42d7008 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -31,6 +31,7 @@ public class Solo extends Ctrl load(Marshal.Mode.STATE, r.state); load(Marshal.Mode.ORDERS, r.orders); battle.getMap().clearMarshalUnits(); + replayLastOrder = !r.synched; r.dispose(); } else System.err.println("TODO : null GameRecord"); |