From f019d5a4881c8ee42fa36ef0613d9e82b3b36297 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 4 Apr 2013 00:36:37 +0300 Subject: SCI: Add a hack to fix bug #3596335 Game scripts are waiting indefinitely for a song, thus we change its dataInc selector to prevent that from happening --- engines/sci/sound/soundcmd.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/sci/sound/soundcmd.cpp') diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp index f943ee61ee..82099fd611 100644 --- a/engines/sci/sound/soundcmd.cpp +++ b/engines/sci/sound/soundcmd.cpp @@ -418,6 +418,11 @@ reg_t SoundCommandParser::kDoSoundFade(int argc, reg_t *argv, reg_t acc) { musicSlot->signal = 0; } + // HACK to fix scripts waiting indefinitely after getting the "love" + // page from the spider (bug #3596335). + if (g_sci->getGameId() == GID_KQ6 && musicSlot->resourceId == 465 && musicSlot->fadeTo == 0) + musicSlot->dataInc = 1; + musicSlot->fadeTicker = 0; break; -- cgit v1.2.3