[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.135,1.136

Max Horn fingolfin at users.sourceforge.net
Mon Aug 9 16:23:08 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17545

Modified Files:
	costume.cpp 
Log Message:
Fix for bug #902387 (MANIAC64: Graphical glitch when Space Police arrives)

Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- costume.cpp	8 Aug 2004 22:09:49 -0000	1.135
+++ costume.cpp	9 Aug 2004 23:22:29 -0000	1.136
@@ -209,7 +209,7 @@
 	v1.scaleXstep = _mirror ? 1 : -1;
 
 	if (_vm->_version == 1)
-		//HACK: it fix gfx glitches left by actor costume in V1 games, when actor moving to left
+		// HACK: Fix a glitch where costumes in V1 games leave a trail when the actor moves left
 		_vm->markRectAsDirty(kMainVirtScreen, rect.left, rect.right + 8, rect.top, rect.bottom, _actorID);
 	else
 		_vm->markRectAsDirty(kMainVirtScreen, rect.left, rect.right + 1, rect.top, rect.bottom, _actorID);
@@ -405,7 +405,7 @@
 			if (!rep)
 				color = *src++;
 			
-			if (0 <= y && y < _outheight) {
+			if (0 <= y && y < _outheight && v1.x < _outwidth) {
 				if (!_mirror) {
 					LINE(0, 0); LINE(2, 2); LINE(4, 4); LINE(6, 6);
 				} else {





More information about the Scummvm-git-logs mailing list