From c583294edeee8470c0ed965d8e7b357073f8560b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 17 Oct 2015 14:08:44 -0400 Subject: SHERLOCK: RT: Fix setting new scene's music filename when music is off --- engines/sherlock/tattoo/tattoo_scene.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'engines/sherlock') diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp index 96c7764a85..2f4e85299b 100644 --- a/engines/sherlock/tattoo/tattoo_scene.cpp +++ b/engines/sherlock/tattoo/tattoo_scene.cpp @@ -94,16 +94,14 @@ bool TattooScene::loadScene(const Common::String &filename) { setNPCPath(WATSON); // Handle loading music for the scene - if (music._musicOn) { - if (talk._scriptMoreFlag != 1 && talk._scriptMoreFlag != 3) - music._nextSongName = Common::String::format("res%02d", _currentScene); - - // If it's a new song, then start it up - if (music._currentSongName.compareToIgnoreCase(music._nextSongName)) { - if (music.loadSong(music._nextSongName)) { - if (music._musicOn) - music.startSong(); - } + if (talk._scriptMoreFlag != 1 && talk._scriptMoreFlag != 3) + music._nextSongName = Common::String::format("res%02d", _currentScene); + + // If it's a new song, then start it up + if (music._currentSongName.compareToIgnoreCase(music._nextSongName)) { + if (music.loadSong(music._nextSongName)) { + if (music._musicOn) + music.startSong(); } } -- cgit v1.2.3