diff options
author | Max Horn | 2007-02-28 10:44:52 +0000 |
---|---|---|
committer | Max Horn | 2007-02-28 10:44:52 +0000 |
commit | 551b2b6b3d6e0f4f03b9084ca495068cb52df089 (patch) | |
tree | d7099778bfcee343c7bae7cfe583ca4267fb7e08 | |
parent | 0076761fa665daaf8c4ee779a1ecff53ecc49ae2 (diff) | |
download | scummvm-rg350-551b2b6b3d6e0f4f03b9084ca495068cb52df089.tar.gz scummvm-rg350-551b2b6b3d6e0f4f03b9084ca495068cb52df089.tar.bz2 scummvm-rg350-551b2b6b3d6e0f4f03b9084ca495068cb52df089.zip |
Fix for bug #1670081 -- SWORD1: game won't load (ogg compression) (regression)
svn-id: r25905
-rw-r--r-- | engines/sword1/sound.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp index ce43230f17..fd0a37003e 100644 --- a/engines/sword1/sound.cpp +++ b/engines/sword1/sound.cpp @@ -344,11 +344,13 @@ void Sound::initCowSystem(void) { } #endif #ifdef USE_MAD - sprintf(cowName, "SPEECH%d.CL3", SwordEngine::_systemVars.currentCD); - _cowFile.open(cowName); - if (_cowFile.isOpen()) { - debug(1, "Using MP3 compressed Speech Cluster"); - _cowMode = CowMp3; + if (!_cowFile.isOpen()) { + sprintf(cowName, "SPEECH%d.CL3", SwordEngine::_systemVars.currentCD); + _cowFile.open(cowName); + if (_cowFile.isOpen()) { + debug(1, "Using MP3 compressed Speech Cluster"); + _cowMode = CowMp3; + } } #endif if (!_cowFile.isOpen()) { |