diff options
author | Filippos Karapetis | 2015-10-22 03:23:52 +0300 |
---|---|---|
committer | Filippos Karapetis | 2015-10-22 03:23:52 +0300 |
commit | a2bd9b524e1d95cde7d4c5ba3ee7a1bd8bdcc084 (patch) | |
tree | 809ea82b2a925c9bef5bdf012dea6d66ea085021 | |
parent | 51d5f6c2b843760615e262f51d1791d9bf10bdf8 (diff) | |
download | scummvm-rg350-a2bd9b524e1d95cde7d4c5ba3ee7a1bd8bdcc084.tar.gz scummvm-rg350-a2bd9b524e1d95cde7d4c5ba3ee7a1bd8bdcc084.tar.bz2 scummvm-rg350-a2bd9b524e1d95cde7d4c5ba3ee7a1bd8bdcc084.zip |
MADS: Phantom: Better checking for scene codes
This allows scene 150 to start
-rw-r--r-- | engines/mads/phantom/phantom_scenes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/phantom/phantom_scenes.cpp b/engines/mads/phantom/phantom_scenes.cpp index 755a2ad505..4f87e4090b 100644 --- a/engines/mads/phantom/phantom_scenes.cpp +++ b/engines/mads/phantom/phantom_scenes.cpp @@ -170,12 +170,12 @@ 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) + Common::String ext = Common::String::format(".WW%d", variant); + Common::String fileName = Resources::formatName(RESPREFIX_RM, _sceneId, ext); + if (!Common::File::exists(fileName)) return; - Common::String ext = Common::String::format(".WW%d", variant); - File f(Resources::formatName(RESPREFIX_RM, _sceneId, ext)); + File f(fileName); MadsPack codesPack(&f); Common::SeekableReadStream *stream = codesPack.getItemStream(0); |