From: Ingo Ruhnke Date: Fri, 16 Apr 2004 14:50:41 +0000 (+0000) Subject: - changed scroll speed for background image (should be configurable via level file) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=391beb6068732770d58c4d5876926ddf9ec11355;p=supertux.git - 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 --- 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); }