aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-02-28 10:44:52 +0000
committerMax Horn2007-02-28 10:44:52 +0000
commit551b2b6b3d6e0f4f03b9084ca495068cb52df089 (patch)
treed7099778bfcee343c7bae7cfe583ca4267fb7e08
parent0076761fa665daaf8c4ee779a1ecff53ecc49ae2 (diff)
downloadscummvm-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.cpp12
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()) {