Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7623
Modified Files:
level.cpp
Log Message:
- fixed levelend (well, maybe more of an workaround
Index: level.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- level.cpp 25 Mar 2004 16:50:13 -0000 1.19
+++ level.cpp 25 Mar 2004 19:10:00 -0000 1.20
@@ -434,19 +434,10 @@
/* Set the global gravity to the latest loaded level's gravity */
gravity = plevel->gravity;
- /* Mark the end position of this level! - Is a bit wrong here thought * /
-
- for (y = 0; y < 15; ++y)
- {
- for (x = 0; x < plevel->width; ++x)
- {
- if(plevel->tiles[y][x] == '|')
- {
- if(x*32 > endpos)
- endpos = x*32;
- }
- }
- }*/
+ // Mark the end position of this level!
+ // FIXME: -10 is a rather random value, we still need some kind of
+ // real levelend gola
+ endpos = 32*(plevel->width-10);
fclose(fi);
return 0;
|