aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2013-04-04 00:36:37 +0300
committerFilippos Karapetis2013-04-04 00:37:43 +0300
commitf019d5a4881c8ee42fa36ef0613d9e82b3b36297 (patch)
treec114ee1b8be84ae3c3be49c69363386dec31dd8b /engines
parent17ca8d14b1e0d1960485029878c728ef4d6d6132 (diff)
downloadscummvm-rg350-f019d5a4881c8ee42fa36ef0613d9e82b3b36297.tar.gz
scummvm-rg350-f019d5a4881c8ee42fa36ef0613d9e82b3b36297.tar.bz2
scummvm-rg350-f019d5a4881c8ee42fa36ef0613d9e82b3b36297.zip
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
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/soundcmd.cpp5
1 files changed, 5 insertions, 0 deletions
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;