From 8841aee2f129e09d45ff5ce38b74877a55ffb5ae Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 17 Oct 2015 15:24:29 -0400 Subject: SHERLOCK: RT: Fix Diogenes fire music slightly too long in intro --- engines/sherlock/tattoo/tattoo_scene.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'engines/sherlock') diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp index 2f4e85299b..27f37665dc 100644 --- a/engines/sherlock/tattoo/tattoo_scene.cpp +++ b/engines/sherlock/tattoo/tattoo_scene.cpp @@ -90,15 +90,22 @@ bool TattooScene::loadScene(const Common::String &filename) { } } - // Set the NPC paths for the scene - setNPCPath(WATSON); - // Handle loading music for the scene if (talk._scriptMoreFlag != 1 && talk._scriptMoreFlag != 3) music._nextSongName = Common::String::format("res%02d", _currentScene); + // Set the NPC paths for the scene + setNPCPath(WATSON); + // If it's a new song, then start it up if (music._currentSongName.compareToIgnoreCase(music._nextSongName)) { + // WORKAROUND: Stop playing music after Diogenes fire scene in the intro, + // since it overlaps slightly into the next scene + if (talk._scriptName == "prol80p" && _currentScene == 80) { + music.stopMusic(); + events.wait(5); + } + if (music.loadSong(music._nextSongName)) { if (music._musicOn) music.startSong(); -- cgit v1.2.3