aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-05-01 22:36:36 -0400
committerPaul Gilbert2014-05-01 22:36:36 -0400
commitb5949010a61e3d12f22ea762ed8d09cc1a79b850 (patch)
tree099a9c3c0a3823c2ea870da5ca58c39ee85155a3 /engines/mads/scene.cpp
parent92ab7e87a0e0afc9db1612b4c7d16597fe6499a0 (diff)
downloadscummvm-rg350-b5949010a61e3d12f22ea762ed8d09cc1a79b850.tar.gz
scummvm-rg350-b5949010a61e3d12f22ea762ed8d09cc1a79b850.tar.bz2
scummvm-rg350-b5949010a61e3d12f22ea762ed8d09cc1a79b850.zip
MADS: Implemented more savegame synchronization
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 5c86e4590e..e53061c750 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -705,10 +705,14 @@ void Scene::freeAnimation() {
}
void Scene::synchronize(Common::Serializer &s) {
- _action._activeAction.synchronize(s);
+ _action.synchronize(s);
_rails.synchronize(s);
_userInterface.synchronize(s);
- _sceneLogic->synchronize(s);
+ s.syncAsByte(_reloadSceneFlag);
+ s.syncAsByte(_roomChanged);
+ s.syncAsUint16LE(_nextSceneId);
+ s.syncAsUint16LE(_priorSceneId);
+ _dynamicHotspots.synchronize(s);
}
} // End of namespace MADS