MADS: The intro animations of Phantom and Dragon work now

This commit is contained in:
Filippos Karapetis 2014-10-14 02:01:00 +03:00
parent f8979d60c3
commit e6a14f403f
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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);