From 391beb6068732770d58c4d5876926ddf9ec11355 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Fri, 16 Apr 2004 14:50:41 +0000 Subject: [PATCH] - changed scroll speed for background image (should be configurable via level file) - fixed bug that caused background to not get cleanly redrawn SVN-Revision: 531 --- src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world.cpp b/src/world.cpp index 29f63ee9d..f246c36a9 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -128,7 +128,7 @@ World::draw() /* 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); } -- 2.11.0