[Scummvm-cvs-logs] SF.net SVN: scummvm: [22808] scummvm/trunk/engines/agi/sprite.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Wed May 31 12:57:02 CEST 2006


Revision: 22808
Author:   wjpalenstijn
Date:     2006-05-31 12:55:54 -0700 (Wed, 31 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22808&view=rev

Log Message:
-----------
Don't let blocking rectangle extend below baseline (see Sarien bugs 810331 and 925074)

Modified Paths:
--------------
    scummvm/trunk/engines/agi/sprite.cpp
Modified: scummvm/trunk/engines/agi/sprite.cpp
===================================================================
--- scummvm/trunk/engines/agi/sprite.cpp	2006-05-31 19:55:29 UTC (rev 22807)
+++ scummvm/trunk/engines/agi/sprite.cpp	2006-05-31 19:55:54 UTC (rev 22808)
@@ -682,6 +682,9 @@
 		 */
 		y3 = (y2 / 12) * 12 + 1;
 
+		// don't let box extend below y.
+		if (y3 > y2) y3 = y2;
+
 		p1 = &game.sbuf[x1 + y3 * _WIDTH];
 		p2 = &game.sbuf[x2 + y3 * _WIDTH];
 


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