[Scummvm-cvs-logs] CVS: scummvm/sky autoroute.cpp,1.26,1.26.2.1

Robert Göffringmann lavosspawn at users.sourceforge.net
Wed Dec 15 21:58:03 CET 2004


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

Modified Files:
      Tag: release-0-7-0
	autoroute.cpp 
Log Message:
copied walk fix over to release branch

Index: autoroute.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/autoroute.cpp,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -u -d -r1.26 -r1.26.2.1
--- autoroute.cpp	22 Oct 2004 17:05:29 -0000	1.26
+++ autoroute.cpp	16 Dec 2004 05:57:20 -0000	1.26.2.1
@@ -68,7 +68,7 @@
 		initX = x - TOP_LEFT_X;
 	} else if (x >= TOP_LEFT_X + GAME_SCREEN_WIDTH) {
 		blkX = (GAME_SCREEN_WIDTH - 1) >> 3;
-		initX = x - (TOP_LEFT_X + GAME_SCREEN_WIDTH);
+		initX = x - (TOP_LEFT_X + GAME_SCREEN_WIDTH - 1);
 	} else {
 		blkX = (x - TOP_LEFT_X) >> 3;
 		initX = 0;
@@ -81,7 +81,7 @@
 		initY = y - TOP_LEFT_Y;
 	} else if (y >= TOP_LEFT_Y + GAME_SCREEN_HEIGHT) {
 		blkY = (GAME_SCREEN_HEIGHT - 1) >> 3;
-		initY = y - (TOP_LEFT_Y + GAME_SCREEN_WIDTH);
+		initY = y - (TOP_LEFT_Y + GAME_SCREEN_HEIGHT);
 	} else {
 		blkY = (y - TOP_LEFT_Y) >> 3;
 		initY = 0;





More information about the Scummvm-git-logs mailing list