[Scummvm-cvs-logs] CVS: scummvm/scumm camera.cpp,2.28,2.29

Max Horn fingolfin at users.sourceforge.net
Sun Sep 26 11:12:07 CEST 2004


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

Modified Files:
	camera.cpp 
Log Message:
cleanup

Index: camera.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/camera.cpp,v
retrieving revision 2.28
retrieving revision 2.29
diff -u -d -r2.28 -r2.29
--- camera.cpp	14 Aug 2004 15:23:44 -0000	2.28
+++ camera.cpp	26 Sep 2004 18:09:06 -0000	2.29
@@ -103,9 +103,9 @@
 		setCameraAt(camera._cur.x, 0);
 	}
 
-	t = a->_pos.x / 8;
+	t = a->_pos.x / 8 - _screenStartStrip;
 
-	if (t - _screenStartStrip < camera._leftTrigger || t - _screenStartStrip > camera._rightTrigger)
+	if (t < camera._leftTrigger || t  > camera._rightTrigger)
 		setCameraAt(a->_pos.x, 0);
 
 	for (i = 1; i < _numActors; i++) {





More information about the Scummvm-git-logs mailing list