aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-04-25 05:59:01 +0000
committerTravis Howell2005-04-25 05:59:01 +0000
commit8e3672852687902b7f6c6742341922cd833abdba (patch)
treef30afdabf589e6af9feb494b5f9758f377eeef2f
parent93803048327377ed3a4f3966e7cf7719253a56ed (diff)
downloadscummvm-rg350-8e3672852687902b7f6c6742341922cd833abdba.tar.gz
scummvm-rg350-8e3672852687902b7f6c6742341922cd833abdba.tar.bz2
scummvm-rg350-8e3672852687902b7f6c6742341922cd833abdba.zip
No music file in lost/smaller.
svn-id: r17799
-rw-r--r--scumm/sound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 20be3a512e..cfdf33e157 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -174,7 +174,7 @@ void Sound::setupHEMusicFile() {
strcpy(buf, buf1);
}
if (musicFile.open(buf) == false) {
- warning("getHEMusicDetails: Music file is not open");
+ warning("setupHEMusicFile: Can't open music file %s", buf);
return;
}
musicFile.seek(4, SEEK_SET);
@@ -214,7 +214,6 @@ void Sound::getHEMusicDetails(int id, int &musicOffs, int &musicSize) {
}
error("getHEMusicDetails: musicID %d not found", id);
-
}
void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) {
@@ -243,7 +242,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) {
strcpy(buf, buf1);
}
if (musicFile.open(buf) == false) {
- warning("playSound: Music file is not open");
+ warning("playSound: Can't open music file %s", buf);
return;
}
@@ -1062,7 +1061,8 @@ void Sound::setupSound() {
delete _sfxFile;
_sfxFile = openSfxFile();
- if (_vm->_heversion >= 70) {
+ // No music file in lost/smaller
+ if (_vm->_heversion >= 70 && !(_vm->_features & GF_HE_CURSORLESS)) {
setupHEMusicFile();
}