- little bouncing block fix
authorIngo Ruhnke <grumbel@gmx.de>
Mon, 26 Apr 2004 11:14:11 +0000 (11:14 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Mon, 26 Apr 2004 11:14:11 +0000 (11:14 +0000)
SVN-Revision: 734

src/gameobjs.cpp

index fd13a77..5133535 100644 (file)
@@ -120,7 +120,6 @@ BouncyBrick::action(double frame_ratio)
 void
 BouncyBrick::draw()
 {
-  int s;
   SDL_Rect dest;
   
   if (base.x >= scroll_x - 32 &&
@@ -144,7 +143,7 @@ BouncyBrick::draw()
         }
       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);
         }