diff options
author | Filippos Karapetis | 2007-07-30 18:26:56 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-07-30 18:26:56 +0000 |
commit | 2b2af8ab5ea768edbfa3ff3bbb56ecc6df046906 (patch) | |
tree | 79e4decf22c69a5e2602ac2d6852cc0491431a90 /engines/saga/rscfile.cpp | |
parent | 012f16d5c3f6c9cc49c3182ced12e47cdd8becb0 (diff) | |
download | scummvm-rg350-2b2af8ab5ea768edbfa3ff3bbb56ecc6df046906.tar.gz scummvm-rg350-2b2af8ab5ea768edbfa3ff3bbb56ecc6df046906.tar.bz2 scummvm-rg350-2b2af8ab5ea768edbfa3ff3bbb56ecc6df046906.zip |
Music works now in the IHNM demo
svn-id: r28332
Diffstat (limited to 'engines/saga/rscfile.cpp')
-rw-r--r-- | engines/saga/rscfile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/saga/rscfile.cpp b/engines/saga/rscfile.cpp index 3063e8a9a6..2db85cfc65 100644 --- a/engines/saga/rscfile.cpp +++ b/engines/saga/rscfile.cpp @@ -683,7 +683,7 @@ void Resource::loadGlobalResources(int chapter, int actorsEntrance) { _vm->_anim->loadCutawayList(resourcePointer, resourceLength); - if (_metaResource.songTableID > 0) { + if (_vm->getGameId() != GID_IHNM_DEMO) { _vm->_resource->loadResource(resourceContext, _metaResource.songTableID, resourcePointer, resourceLength); if (resourceLength == 0) { @@ -700,6 +700,9 @@ void Resource::loadGlobalResources(int chapter, int actorsEntrance) { for (i = 0; i < _vm->_music->_songTableLen; i++) _vm->_music->_songTable[i] = songS.readSint32LE(); free(resourcePointer); + } else { + // The IHNM demo has a fixed music track and doesn't load a song table + _vm->_music->play(3, MUSIC_NORMAL); } int voiceLUTResourceID = 0; |