[Super-tux-commit] supertux/src world.cpp,1.25,1.26
Brought to you by:
wkendrick
From: Ingo R. <gr...@us...> - 2004-04-16 14:50:50
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17857 Modified Files: world.cpp Log Message: - changed scroll speed for background image (should be configurable via level file) - fixed bug that caused background to not get cleanly redrawn Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- world.cpp 13 Apr 2004 11:34:54 -0000 1.25 +++ world.cpp 16 Apr 2004 14:50:41 -0000 1.26 @@ -128,7 +128,7 @@ /* Draw the real background */ if(get_level()->bkgd_image[0] != '\0') { - int s = (int)scroll_x / 30; + int s = ((int)scroll_x / 2)%640; level->img_bkgd->draw_part(s, 0,0,0,level->img_bkgd->w - s, level->img_bkgd->h); level->img_bkgd->draw_part(0, 0,screen->w - s ,0,s,level->img_bkgd->h); } |