aboutsummaryrefslogtreecommitdiff
path: root/sword1/sound.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-12-26 03:07:01 +0000
committerJonathan Gray2003-12-26 03:07:01 +0000
commita3b09e7313c5bb937b45513e8e7024ea1e76d226 (patch)
tree4e2961fbbe7c1d0a51b53915df18b7180e22b519 /sword1/sound.cpp
parent2755d9c00af078e610160c6a976b331170970a80 (diff)
downloadscummvm-rg350-a3b09e7313c5bb937b45513e8e7024ea1e76d226.tar.gz
scummvm-rg350-a3b09e7313c5bb937b45513e8e7024ea1e76d226.tar.bz2
scummvm-rg350-a3b09e7313c5bb937b45513e8e7024ea1e76d226.zip
look for data/speech1/2.clu and data/speech/speech.clu, instead of data/speech1/2.clu and data/speech/speech1/2.clu fixes running from cd or using the same layout as the cd
svn-id: r11934
Diffstat (limited to 'sword1/sound.cpp')
-rw-r--r--sword1/sound.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp
index 2e2fb15a41..83dca583d6 100644
--- a/sword1/sound.cpp
+++ b/sword1/sound.cpp
@@ -215,10 +215,13 @@ void SwordSound::stopSpeech(void) {
void SwordSound::initCowSystem(void) {
char cowName[25];
+ /* look for speech1/2.clu in the data dir
+ and speech/speech.clu (running from cd or using cd layout)
+ */
sprintf(cowName, "SPEECH%d.CLU", SwordEngine::_systemVars.currentCD);
_cowFile.open(cowName);
if (!_cowFile.isOpen()) {
- sprintf(cowName, "speech/SPEECH%d.CLU", SwordEngine::_systemVars.currentCD);
+ sprintf(cowName, "speech/SPEECH.CLU");
_cowFile.open(cowName);
}
if (_cowFile.isOpen()) {