From d8581712ae1f991fb145f9caef4a52ae3de8d0f2 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Mon, 26 Apr 2004 11:14:11 +0000 Subject: [PATCH] - little bouncing block fix SVN-Revision: 734 --- src/gameobjs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.11.0