diff options
author | Paul Gilbert | 2014-04-23 21:01:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-23 21:01:48 -0400 |
commit | c1a90cdda1f1424cb9b6b2e91b82c47cf0913335 (patch) | |
tree | ec98a3d3e3a562488484de697773b4d240140413 /engines/mads/nebular | |
parent | ee1a33946fb8f7b61d37e15285e1c5f21f012aa0 (diff) | |
download | scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.tar.gz scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.tar.bz2 scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.zip |
MADS: Further synchronization implementation
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r-- | engines/mads/nebular/game_nebular.cpp | 8 | ||||
-rw-r--r-- | engines/mads/nebular/game_nebular.h | 2 | ||||
-rw-r--r-- | engines/mads/nebular/globals_nebular.cpp | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/engines/mads/nebular/game_nebular.cpp b/engines/mads/nebular/game_nebular.cpp index 23c8b3cdd6..34eb6f140c 100644 --- a/engines/mads/nebular/game_nebular.cpp +++ b/engines/mads/nebular/game_nebular.cpp @@ -744,6 +744,14 @@ void GameNebular::step() { } } +void GameNebular::synchronize(Common::Serializer &s, bool phase1) { + Game::synchronize(s, phase1); + + if (!phase1) { + _globals.synchronize(s); + } +} + } // End of namespace Nebular } // End of namespace MADS diff --git a/engines/mads/nebular/game_nebular.h b/engines/mads/nebular/game_nebular.h index 7d64e3e49f..0e2d564236 100644 --- a/engines/mads/nebular/game_nebular.h +++ b/engines/mads/nebular/game_nebular.h @@ -73,6 +73,8 @@ public: virtual void unhandledAction(); virtual void step(); + + virtual void synchronize(Common::Serializer &s, bool phase1); }; diff --git a/engines/mads/nebular/globals_nebular.cpp b/engines/mads/nebular/globals_nebular.cpp index 3e9a9f7e2f..a8b7cdce72 100644 --- a/engines/mads/nebular/globals_nebular.cpp +++ b/engines/mads/nebular/globals_nebular.cpp @@ -30,7 +30,7 @@ namespace Nebular { NebularGlobals::NebularGlobals(): Globals() { // Initialize lists - _flags.resize(210); + _data.resize(210); _spriteIndexes.resize(30); _sequenceIndexes.resize(30); |