aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorFilippos Karapetis2014-10-14 02:01:00 +0300
committerFilippos Karapetis2014-10-14 02:01:00 +0300
commite6a14f403ff3bf0b42eae8fb91086ddec0e48752 (patch)
treefdf8070ab404eaaee2a01ff59186f8fdeb503c63 /engines/mads
parentf8979d60c3479cd617fa048b83cd3c9c96e3f32e (diff)
downloadscummvm-rg350-e6a14f403ff3bf0b42eae8fb91086ddec0e48752.tar.gz
scummvm-rg350-e6a14f403ff3bf0b42eae8fb91086ddec0e48752.tar.bz2
scummvm-rg350-e6a14f403ff3bf0b42eae8fb91086ddec0e48752.zip
MADS: The intro animations of Phantom and Dragon work now
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/dragonsphere/dragonsphere_scenes.cpp4
-rw-r--r--engines/mads/phantom/phantom_scenes.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/mads/dragonsphere/dragonsphere_scenes.cpp b/engines/mads/dragonsphere/dragonsphere_scenes.cpp
index f32d17d9c9..dbf1759d4b 100644
--- a/engines/mads/dragonsphere/dragonsphere_scenes.cpp
+++ b/engines/mads/dragonsphere/dragonsphere_scenes.cpp
@@ -201,6 +201,10 @@ Common::String DragonsphereScene::formAnimName(char sepChar, int suffixNum) {
/*------------------------------------------------------------------------*/
void SceneInfoDragonsphere::loadCodes(MSurface &depthSurface, int variant) {
+ // The intro scenes do not have any codes
+ if (_sceneId >= 900)
+ return;
+
Common::String ext = Common::String::format(".WW%d", variant);
File f(Resources::formatName(RESPREFIX_RM, _sceneId, ext));
MadsPack codesPack(&f);
diff --git a/engines/mads/phantom/phantom_scenes.cpp b/engines/mads/phantom/phantom_scenes.cpp
index 7fd7ce642d..2028f2427f 100644
--- a/engines/mads/phantom/phantom_scenes.cpp
+++ b/engines/mads/phantom/phantom_scenes.cpp
@@ -169,6 +169,10 @@ Common::String PhantomScene::formAnimName(char sepChar, int suffixNum) {
/*------------------------------------------------------------------------*/
void SceneInfoPhantom::loadCodes(MSurface &depthSurface, int variant) {
+ // The intro scenes do not have any codes
+ if (_sceneId >= 900)
+ return;
+
Common::String ext = Common::String::format(".WW%d", variant);
File f(Resources::formatName(RESPREFIX_RM, _sceneId, ext));
MadsPack codesPack(&f);