aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/phantom/phantom_scenes1.cpp
diff options
context:
space:
mode:
authorStrangerke2015-11-24 18:19:35 +0100
committerStrangerke2015-11-24 18:19:35 +0100
commitb0c032275af712e53f6079796b876a7a56319553 (patch)
treecd74b52c9f9a7464b65882c0ed42160fb49ac597 /engines/mads/phantom/phantom_scenes1.cpp
parent2c158d0e4171006d7da886271ed5d96f9ec78ba5 (diff)
downloadscummvm-rg350-b0c032275af712e53f6079796b876a7a56319553.tar.gz
scummvm-rg350-b0c032275af712e53f6079796b876a7a56319553.tar.bz2
scummvm-rg350-b0c032275af712e53f6079796b876a7a56319553.zip
MADS: Phantom - Initialize and synchronize a couple of variables
Diffstat (limited to 'engines/mads/phantom/phantom_scenes1.cpp')
-rw-r--r--engines/mads/phantom/phantom_scenes1.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mads/phantom/phantom_scenes1.cpp b/engines/mads/phantom/phantom_scenes1.cpp
index 53bf1174ef..7bde27777a 100644
--- a/engines/mads/phantom/phantom_scenes1.cpp
+++ b/engines/mads/phantom/phantom_scenes1.cpp
@@ -5603,6 +5603,8 @@ Scene109::Scene109(MADSEngine *vm) : Scene1xx(vm) {
_anim1ActvFl = false;
_anim2ActvFl = false;
_anim3ActvFl = false;
+
+ _currentFloor = -1;
}
void Scene109::synchronize(Common::Serializer &s) {
@@ -5612,6 +5614,8 @@ void Scene109::synchronize(Common::Serializer &s) {
s.syncAsByte(_anim1ActvFl);
s.syncAsByte(_anim2ActvFl);
s.syncAsByte(_anim3ActvFl);
+
+ s.syncAsSint16LE(_currentFloor);
}
void Scene109::setup() {
@@ -7664,6 +7668,7 @@ Scene113::Scene113(MADSEngine *vm) : Scene1xx(vm) {
_dayStatus = -1;
_raoulAction = -1;
+ _christineHotspotId1 = -1;
_christineHotspotId2 = -1;
_raoulCount = -1;
_dayCount = -1;
@@ -7698,6 +7703,7 @@ void Scene113::synchronize(Common::Serializer &s) {
s.syncAsSint16LE(_dayStatus);
s.syncAsSint16LE(_raoulAction);
+ s.syncAsSint16LE(_christineHotspotId1);
s.syncAsSint16LE(_christineHotspotId2);
s.syncAsSint16LE(_raoulCount);
s.syncAsSint16LE(_dayCount);