[Scummvm-cvs-logs] SF.net SVN: scummvm: [26744] scummvm/trunk/engines/lure/hotspots.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Fri May 4 11:16:56 CEST 2007


Revision: 26744
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26744&view=rev
Author:   dreammaster
Date:     2007-05-04 02:16:55 -0700 (Fri, 04 May 2007)

Log Message:
-----------
Bugfix to prevent characters stopped by a right-hand non-walkable area then being able to walk through it

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-05-04 08:55:28 UTC (rev 26743)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-05-04 09:16:55 UTC (rev 26744)
@@ -566,7 +566,7 @@
 
 	int xp = x() >> 3;
 	int yp = (y() - 8 + heightCopy() - 4) >> 3;
-	int widthVal = MAX((widthCopy() >> 3), 1);
+	int widthVal = MAX(((widthCopy() - 1) >> 3), 1);
 
 	// Handle cropping for screen left
 	if (xp < 0) {


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