Skip to content

Commit

Permalink
MADS: V2: The intro scenes do not have any codes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jul 3, 2015
1 parent ca6612e commit 4248054
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/mads/dragonsphere/dragonsphere_scenes.cpp
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions engines/mads/phantom/phantom_scenes.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 4248054

Please sign in to comment.