diff options
| author | Arnaud Boutonné | 2010-08-21 18:16:04 +0000 |
|---|---|---|
| committer | Arnaud Boutonné | 2010-08-21 18:16:04 +0000 |
| commit | 5cd3ea41db71b4521954cd65bc9775c1bbeabb9f (patch) | |
| tree | 6439aa75f2cc839dfc53763c5f9570b32cd2ffcd /engines/gob/sound | |
| parent | ee6f972247ccd47e6db9451fef2604ce219ade23 (diff) | |
| download | scummvm-rg350-5cd3ea41db71b4521954cd65bc9775c1bbeabb9f.tar.gz scummvm-rg350-5cd3ea41db71b4521954cd65bc9775c1bbeabb9f.tar.bz2 scummvm-rg350-5cd3ea41db71b4521954cd65bc9775c1bbeabb9f.zip | |
GOB: Clean up of Fascination code
Move Fascination specific function to appropriate classes, plus some style modifications
svn-id: r52267
Diffstat (limited to 'engines/gob/sound')
| -rw-r--r-- | engines/gob/sound/sound.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp index 5abc94d025..bc4495fafd 100644 --- a/engines/gob/sound/sound.cpp +++ b/engines/gob/sound/sound.cpp @@ -610,11 +610,13 @@ void Sound::cdPlayMultMusic() { void Sound::cdPlay(const char *trackName) { if (!_cdrom) return; - debugC(1, kDebugSound, "CDROM: Playing track \"%s\"", trackName); - if ((_vm->getGameType() == kGameTypeFascination) && !scumm_stricmp(trackName, "boscle")) { + +// WORKAROUND - In Fascination CD, in the storage room, a track has the wrong +// name in the scripts, and therefore doesn't play. This fixes the problem. + if ((_vm->getGameType() == kGameTypeFascination) && !scumm_stricmp(trackName, "boscle")) _cdrom->startTrack("bosscle"); - } else + else _cdrom->startTrack(trackName); } |
