[Super-tux-commit] supertux/src world.cpp,1.77,1.78
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-05-11 23:37:23
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6382/src Modified Files: world.cpp Log Message: Bottom tiles were not being drawn right when vertical scrolling was enabled. Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.77 retrieving revision 1.78 diff -u -d -r1.77 -r1.78 --- world.cpp 11 May 2004 23:30:50 -0000 1.77 +++ world.cpp 11 May 2004 23:37:12 -0000 1.78 @@ -197,7 +197,7 @@ } /* Draw background: */ - for (y = 0; y < 15; ++y) + for (y = 0; y < 16 && y < level->height; ++y) { for (x = 0; x < 21; ++x) { @@ -207,7 +207,7 @@ } /* Draw interactive tiles: */ - for (y = 0; y < 15; ++y) + for (y = 0; y < 16 && y < level->height; ++y) { for (x = 0; x < 21; ++x) { @@ -241,7 +241,7 @@ broken_bricks[i]->draw(); /* Draw foreground: */ - for (y = 0; y < 15; ++y) + for (y = 0; y < 16 && y < level->height; ++y) { for (x = 0; x < 21; ++x) { |