[Scummvm-cvs-logs] SF.net SVN: scummvm: [25600] scummvm/trunk/engines/scumm/costume.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Feb 15 11:30:30 CET 2007


Revision: 25600
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25600&view=rev
Author:   fingolfin
Date:     2007-02-15 02:30:30 -0800 (Thu, 15 Feb 2007)

Log Message:
-----------
Fix for bug #1451720: MANIACNES: Actors don't appear if outside camera range

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/costume.cpp

Modified: scummvm/trunk/engines/scumm/costume.cpp
===================================================================
--- scummvm/trunk/engines/scumm/costume.cpp	2007-02-14 23:46:39 UTC (rev 25599)
+++ scummvm/trunk/engines/scumm/costume.cpp	2007-02-15 10:30:30 UTC (rev 25600)
@@ -655,6 +655,11 @@
 			x = -x;
 		}
 
+		left = MIN(left, _actorX + x);
+		right = MAX(right, _actorX + x + 8);
+		top = MIN(top, _actorY + y);
+		bottom = MAX(bottom, _actorY + y + 8);
+
 		if ((_actorX + x < 0) || (_actorX + x + 8 >= _out.w))
 			continue;
 		if ((_actorY + y < 0) || (_actorY + y + 8 >= _out.h))
@@ -681,10 +686,6 @@
 					*((byte *)_out.pixels + my * _out.pitch + mx) = palette[c];
 			}
 		}
-		left = MIN(left, _actorX + x);
-		right = MAX(right, _actorX + x + 8);
-		top = MIN(top, _actorY + y);
-		bottom = MAX(bottom, _actorY + y + 8);
 	}
 
 	_draw_top = top;


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