diff options
-rw-r--r-- | engines/mads/phantom/game_phantom.cpp | 2 | ||||
-rw-r--r-- | engines/mads/phantom/phantom_scenes1.cpp | 6 | ||||
-rw-r--r-- | engines/mads/phantom/phantom_scenes1.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/engines/mads/phantom/game_phantom.cpp b/engines/mads/phantom/game_phantom.cpp index dd649d1e4a..af2102b18f 100644 --- a/engines/mads/phantom/game_phantom.cpp +++ b/engines/mads/phantom/game_phantom.cpp @@ -138,6 +138,8 @@ namespace Phantom { GamePhantom::GamePhantom(MADSEngine *vm) : Game(vm) { _surface = new MSurface(MADS_SCREEN_WIDTH, MADS_SCENE_HEIGHT); _difficulty = DIFFICULTY_HARD; + _catacombs = nullptr; + _catacombSize = -1; } void GamePhantom::startGame() { 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); diff --git a/engines/mads/phantom/phantom_scenes1.h b/engines/mads/phantom/phantom_scenes1.h index d1be6e027e..cadfcefbef 100644 --- a/engines/mads/phantom/phantom_scenes1.h +++ b/engines/mads/phantom/phantom_scenes1.h @@ -264,6 +264,7 @@ private: bool _anim2ActvFl; bool _anim3ActvFl; int _currentFloor; + public: Scene109(MADSEngine *vm); virtual void synchronize(Common::Serializer &s); |