I think this fixes image background scrolling.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 18 May 2004 14:03:53 +0000 (14:03 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 18 May 2004 14:03:53 +0000 (14:03 +0000)
Still needs testing.

SVN-Revision: 1248

src/level.cpp

index f42dd9a..ff38e8d 100644 (file)
@@ -768,7 +768,7 @@ void Level::draw_bg()
   for (int x = 0; (x-1)*img_bkgd->w <= screen->w; x++)
     for (int y = 0; (y-1)*img_bkgd->h <= screen->h; y++)
       img_bkgd->draw_part(x == 0 ? sx : 0, y == 0 ? sy : 0,
-                        x == 0 ? 0 : (img_bkgd->w * x) - sx, y == 0 ? 0 : (img_bkgd->h * y) - sy + (height*32 - screen->h),
+                        x == 0 ? 0 : (img_bkgd->w * x) - sx, y == 0 ? 0 : (img_bkgd->h * y) - sy,
                         x == 0 ? img_bkgd->w - sx : img_bkgd->w, y == 0 ? img_bkgd->h - sy : img_bkgd->h);
 }