aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/sound_he.cpp
diff options
context:
space:
mode:
authorMax Horn2006-02-25 17:36:32 +0000
committerMax Horn2006-02-25 17:36:32 +0000
commit2ae0f79de375527e30bef7e49839cacee770d8e9 (patch)
treeb5eddfc2a89e81735d97fc55b5cd899c4fcbcfa2 /engines/scumm/he/sound_he.cpp
parenta161b09728a9b90682d55aab347bb79212444134 (diff)
downloadscummvm-rg350-2ae0f79de375527e30bef7e49839cacee770d8e9.tar.gz
scummvm-rg350-2ae0f79de375527e30bef7e49839cacee770d8e9.tar.bz2
scummvm-rg350-2ae0f79de375527e30bef7e49839cacee770d8e9.zip
Split SCUMM's generateSubstResFileName into two functions: findSubstResFileName and applySubstResFileName
svn-id: r20879
Diffstat (limited to 'engines/scumm/he/sound_he.cpp')
-rw-r--r--engines/scumm/he/sound_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp
index 374eafc0a2..9b8939402c 100644
--- a/engines/scumm/he/sound_he.cpp
+++ b/engines/scumm/he/sound_he.cpp
@@ -160,7 +160,7 @@ void Sound::setupHEMusicFile() {
sprintf(buf, "%s.he4", _vm->getBaseName());
- if (_vm->_substResFileNameIndex > 0) {
+ if (_vm->_substResFileName.winName != 0) {
_vm->generateSubstResFileName(buf, buf1, sizeof(buf1));
strcpy(buf, buf1);
}
@@ -352,7 +352,7 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) {
sprintf(buf, "%s.he4", _vm->getBaseName());
- if (_vm->_substResFileNameIndex > 0) {
+ if (_vm->_substResFileName.winName != 0) {
_vm->generateSubstResFileName(buf, buf1, sizeof(buf1));
strcpy(buf, buf1);
}