diff options
author | Eugene Sandulenko | 2019-07-26 22:50:36 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:29 +0200 |
commit | 421ae7165e0b6341a179a508bb1719e2fdde4ae2 (patch) | |
tree | dfc5f5226eafe2afaf72e7cc3f5132fb305351b2 | |
parent | fc0dd1fb1a522e496501ee41f2e0f3c24059455c (diff) | |
download | scummvm-rg350-421ae7165e0b6341a179a508bb1719e2fdde4ae2.tar.gz scummvm-rg350-421ae7165e0b6341a179a508bb1719e2fdde4ae2.tar.bz2 scummvm-rg350-421ae7165e0b6341a179a508bb1719e2fdde4ae2.zip |
HDB: Added heuristic to determing sound file type
-rw-r--r-- | engines/hdb/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp index 394745f418..9d3b80cfc8 100644 --- a/engines/hdb/sound.cpp +++ b/engines/hdb/sound.cpp @@ -1430,7 +1430,7 @@ bool Sound::init() { _soundCache[index2].loaded = false; _soundCache[index2].name = soundList[index].name; _soundCache[index2].luaName = soundList[index].luaName; - if (index2 <= SND_UNLOCKED_ITEM || index == SND_BEEPBEEPBEEP) + if (!scumm_stricmp(_soundCache[index2].name, ".wav")) _soundCache[index2].ext = -1; // WAV else _soundCache[index2].ext = 1; // MP3 |