[Super-tux-commit] supertux/src gameobjs.cpp,1.11,1.12
Brought to you by:
wkendrick
From: Ingo R. <gr...@us...> - 2004-04-26 11:14:22
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17018 Modified Files: gameobjs.cpp Log Message: - little bouncing block fix Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- gameobjs.cpp 20 Apr 2004 11:09:33 -0000 1.11 +++ gameobjs.cpp 26 Apr 2004 11:14:11 -0000 1.12 @@ -120,7 +120,6 @@ void BouncyBrick::draw() { - int s; SDL_Rect dest; if (base.x >= scroll_x - 32 && @@ -144,7 +143,7 @@ } else { - s = (int)scroll_x / 30; + int s = ((int)scroll_x / 2)%640; plevel->img_bkgd->draw_part(dest.x + s, dest.y, dest.x, dest.y,dest.w,dest.h); } |