[Scummvm-cvs-logs] CVS: scummvm/sky autoroute.cpp,1.27,1.28

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


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

Modified Files:
	autoroute.cpp 
Log Message:
fix for bug #897777 (Foster walks on water...) and #788858 (Walk glitch)

Index: autoroute.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/autoroute.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- autoroute.cpp	15 Dec 2004 06:48:03 -0000	1.27
+++ autoroute.cpp	16 Dec 2004 05:27:10 -0000	1.28
@@ -69,7 +69,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;
@@ -82,7 +82,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