[Scummvm-cvs-logs] CVS: scummvm/saga scene.cpp,1.100,1.101

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun Apr 24 08:35:24 CEST 2005


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

Modified Files:
	scene.cpp 
Log Message:
Fixed warning. (Unused variables.)


Index: scene.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/scene.cpp,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- scene.cpp	24 Apr 2005 15:17:37 -0000	1.100
+++ scene.cpp	24 Apr 2005 15:35:03 -0000	1.101
@@ -384,24 +384,22 @@
 }
 
 bool Scene::offscreenPath(Point &testPoint) {
-	Point first;
-	Point second;
-	Point third;
+	Point point;
 
 	if (!_bgMask.loaded) {
 		return false;
 	}
 
-	first.x = clamp( 0, testPoint.x, _bgMask.w - 1 );
-	first.y = clamp( 0, testPoint.y, _bgMask.h - 1 );
-	if (first == testPoint) {
+	point.x = clamp( 0, testPoint.x, _bgMask.w - 1 );
+	point.y = clamp( 0, testPoint.y, _bgMask.h - 1 );
+	if (point == testPoint) {
 		return false;
 	}
 
-	if (first.y >= _bgMask.h - 1) {
-		first.y = _bgMask.h - 2;
+	if (point.y >= _bgMask.h - 1) {
+		point.y = _bgMask.h - 2;
 	}
-	testPoint = first;
+	testPoint = point;
 
 	return true;
 }





More information about the Scummvm-git-logs mailing list