[Scummvm-cvs-logs] SF.net SVN: scummvm:[51065] scummvm/trunk/engines/sci/engine/kernel.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Tue Jul 20 16:53:55 CEST 2010
Revision: 51065
http://scummvm.svn.sourceforge.net/scummvm/?rev=51065&view=rev
Author: m_kiewitz
Date: 2010-07-20 14:53:55 +0000 (Tue, 20 Jul 2010)
Log Message:
-----------
SCI: adding workaround for sq1 in bar
kGraph(drawLine) gets called sometimes with additional parameter
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kernel.cpp
Modified: scummvm/trunk/engines/sci/engine/kernel.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kernel.cpp 2010-07-20 14:53:26 UTC (rev 51064)
+++ scummvm/trunk/engines/sci/engine/kernel.cpp 2010-07-20 14:53:55 UTC (rev 51065)
@@ -243,6 +243,12 @@
};
// 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 @@
{ 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 },
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list