aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index e6dd3cd356..d917fcc94d 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -534,11 +534,15 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, PlayingSoundHandle
return;
}
- sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_sfxFile->close();
+ sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_sfxFile->open(filename);
if (!_sfxFile->isOpen()) {
- warning("startTalkSound: dig demo: voc file not found: %s", filename);
+ sprintf(filename, "%d.%d.voc", offset, b);
+ _sfxFile->open(filename);
+ }
+ if (!_sfxFile->isOpen()) {
+ warning("startTalkSound: dig demo: voc file not found");
return;
}