From: Ingo Ruhnke Date: Mon, 26 Apr 2004 11:14:11 +0000 (+0000) Subject: - little bouncing block fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d8581712ae1f991fb145f9caef4a52ae3de8d0f2;p=supertux.git - little bouncing block fix SVN-Revision: 734 --- diff --git a/src/gameobjs.cpp b/src/gameobjs.cpp index fd13a77b2..5133535af 100644 --- a/src/gameobjs.cpp +++ b/src/gameobjs.cpp @@ -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); }