aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-20 14:53:55 +0000
committerMartin Kiewitz2010-07-20 14:53:55 +0000
commit90d45aaa7d6aa0b63505e034430293c7b3fe352c (patch)
tree61c2933991de2bb57a13cf7edc525f690e87c14f /engines/sci/engine
parentef69fb1af5e30fa5f6450ea74837086ea3624d37 (diff)
downloadscummvm-rg350-90d45aaa7d6aa0b63505e034430293c7b3fe352c.tar.gz
scummvm-rg350-90d45aaa7d6aa0b63505e034430293c7b3fe352c.tar.bz2
scummvm-rg350-90d45aaa7d6aa0b63505e034430293c7b3fe352c.zip
SCI: adding workaround for sq1 in bar
kGraph(drawLine) gets called sometimes with additional parameter svn-id: r51065
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kernel.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 27ece063ad..e878818bae 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -243,6 +243,12 @@ static const SciWorkaroundEntry kDoSoundFade_workarounds[] = {
};
// gameID, room,script,lvl, object-name, method-name, call, index, replace
+static const SciWorkaroundEntry kGraphDrawLine_workarounds[] = {
+ { GID_SQ1, 43, 43, 0, "someoneDied", "changeState", -1, 0, { 1, 0 } }, // happens when ordering beer, gets called with 1 extra parameter
+ SCI_WORKAROUNDENTRY_TERMINATOR
+};
+
+// gameID, room,script,lvl, object-name, method-name, call, index, replace
static const SciWorkaroundEntry kGraphRestoreBox_workarounds[] = {
{ GID_LSL6, -1, 85, 0, "rScroller", "hide", -1, 0, { 1, 0 } }, // happens when restoring (sometimes), same as the one below
{ GID_LSL6, -1, 85, 0, "lScroller", "hide", -1, 0, { 1, 0 } }, // happens when restoring (sometimes), same as the one below
@@ -422,7 +428,7 @@ static const SciKernelMapSubEntry kGraph_subops[] = {
{ SIG_SCI32, 1, MAP_CALL(StubNull), "", NULL }, // called by gk1 sci32 right at the start
{ SIG_SCIALL, 2, MAP_CALL(GraphGetColorCount), "", NULL },
// 3 - set palette via resource
- { SIG_SCIALL, 4, MAP_CALL(GraphDrawLine), "iiiii(i)(i)", NULL },
+ { SIG_SCIALL, 4, MAP_CALL(GraphDrawLine), "iiiii(i)(i)", kGraphDrawLine_workarounds },
// 5 - nop
// 6 - draw pattern
{ SIG_SCIALL, 7, MAP_CALL(GraphSaveBox), "iiiii", NULL },