diff options
author | Paul Gilbert | 2014-04-05 22:41:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-05 22:41:25 -0400 |
commit | ff7d2e2dbf60202cc24b26b1ac61c0e76e802191 (patch) | |
tree | c54249ca263e20ec7e2221ef9b7e2bcfc9f73d45 /engines/mads/scene_data.cpp | |
parent | 11403c5db6eac282e0e1f28623ac25ab95517792 (diff) | |
download | scummvm-rg350-ff7d2e2dbf60202cc24b26b1ac61c0e76e802191.tar.gz scummvm-rg350-ff7d2e2dbf60202cc24b26b1ac61c0e76e802191.tar.bz2 scummvm-rg350-ff7d2e2dbf60202cc24b26b1ac61c0e76e802191.zip |
MADS: Add missing scene codes variant handling
Diffstat (limited to 'engines/mads/scene_data.cpp')
-rw-r--r-- | engines/mads/scene_data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp index 4c19202f4b..f92ff86798 100644 --- a/engines/mads/scene_data.cpp +++ b/engines/mads/scene_data.cpp @@ -98,7 +98,7 @@ SceneInfo *SceneInfo::init(MADSEngine *vm) { } } -void SceneInfo::load(int sceneId, int v1, const Common::String &resName, +void SceneInfo::load(int sceneId, int variant, const Common::String &resName, int flags, MSurface &depthSurface, MSurface &bgSurface) { bool sceneFlag = sceneId >= 0; @@ -180,7 +180,7 @@ void SceneInfo::load(int sceneId, int v1, const Common::String &resName, } // Load the depth surface with the scene codes - Common::SeekableReadStream *depthStream = infoPack.getItemStream(1); + Common::SeekableReadStream *depthStream = infoPack.getItemStream(variant + 1); loadCodes(depthSurface, depthStream); delete depthStream; |