diff options
author | Strangerke | 2015-11-24 18:19:35 +0100 |
---|---|---|
committer | Strangerke | 2015-11-24 18:19:35 +0100 |
commit | b0c032275af712e53f6079796b876a7a56319553 (patch) | |
tree | cd74b52c9f9a7464b65882c0ed42160fb49ac597 /engines/mads/phantom | |
parent | 2c158d0e4171006d7da886271ed5d96f9ec78ba5 (diff) | |
download | scummvm-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')
-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); |