aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/sound/sound.cpp')
-rw-r--r--engines/gob/sound/sound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp
index dc80699ce0..02c3b28934 100644
--- a/engines/gob/sound/sound.cpp
+++ b/engines/gob/sound/sound.cpp
@@ -562,9 +562,9 @@ void Sound::cdPlayBgMusic() {
};
for (int i = 0; i < ARRAYSIZE(tracks); i++)
- if (!scumm_stricmp(_vm->_game->_curTotFile, tracks[i][0])) {
+ if (_vm->_game->_curTotFile.equalsIgnoreCase(tracks[i][0])) {
debugC(1, kDebugSound, "CDROM: Playing background music \"%s\" (\"%s\")",
- tracks[i][1], _vm->_game->_curTotFile);
+ tracks[i][1], _vm->_game->_curTotFile.c_str());
_cdrom->startTrack(tracks[i][1]);
break;
@@ -587,9 +587,9 @@ void Sound::cdPlayMultMusic() {
// Default to "ang?" for other languages (including EN_USA)
int language = _vm->_global->_language <= 4 ? _vm->_global->_language : 2;
for (int i = 0; i < ARRAYSIZE(tracks); i++)
- if (!scumm_stricmp(_vm->_game->_curTotFile, tracks[i][0])) {
+ if (_vm->_game->_curTotFile.equalsIgnoreCase(tracks[i][0])) {
debugC(1, kDebugSound, "CDROM: Playing mult music \"%s\" (\"%s\")",
- tracks[i][language + 1], _vm->_game->_curTotFile);
+ tracks[i][language + 1], _vm->_game->_curTotFile.c_str());
_cdrom->startTrack(tracks[i][language + 1]);
break;