Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5197/src
Modified Files:
world.cpp
Log Message:
Added a test for a end of level scrolling test...
There seems to be an end sequence issue regarding this, doesn't it make use of the scrolling()?
Index: world.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- world.cpp 4 May 2004 13:59:00 -0000 1.55
+++ world.cpp 4 May 2004 14:41:14 -0000 1.56
@@ -347,8 +347,11 @@
scroll_x = tux_pos_x - X_SPACE;
}
+ // this code prevent the screen to scroll before the start or after the level's end
if(scroll_x < 0)
scroll_x = 0;
+ if(scroll_x > (level->width-1) * 32)
+ scroll_x = (level->width-1) * 32;
}
void
|