[Scummvm-cvs-logs] SF.net SVN: scummvm: [31449] scummvm/trunk/engines/agi/op_cmd.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue Apr 8 10:54:07 CEST 2008
Revision: 31449
http://scummvm.svn.sourceforge.net/scummvm/?rev=31449&view=rev
Author: thebluegr
Date: 2008-04-08 01:54:05 -0700 (Tue, 08 Apr 2008)
Log Message:
-----------
Added a sanity check for original game script bugs in Agent06. Fixes bugs #1935842 - "AGI: Fan(Agent06) - Graphic errors" and #1935838 - "AGI: Fan(Agent06) - Crash on Quit"
Modified Paths:
--------------
scummvm/trunk/engines/agi/op_cmd.cpp
Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp 2008-04-08 03:05:31 UTC (rev 31448)
+++ scummvm/trunk/engines/agi/op_cmd.cpp 2008-04-08 08:54:05 UTC (rev 31449)
@@ -1424,6 +1424,10 @@
/* Residence 44 calls clear.lines(24,0,0), see Sarien bug #558423 */
l = p1 ? p1 : p0;
+ // Agent06 incorrectly calls clear.lines(1,150,0), see ScummVM bugs
+ // #1935838 and #1935842
+ l = (l <= 24) ? l : 24;
+
g_agi->clearLines(p0, l, p2);
g_agi->flushLines(p0, l);
}
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