- fixed vscroll a bit--forgot foreground
authorRyan Flegel <rflegel@gmail.com>
Tue, 11 May 2004 23:30:50 +0000 (23:30 +0000)
committerRyan Flegel <rflegel@gmail.com>
Tue, 11 May 2004 23:30:50 +0000 (23:30 +0000)
SVN-Revision: 1119

src/world.cpp

index ae262df..b05c142 100644 (file)
@@ -245,7 +245,7 @@ World::draw()
     {
       for (x = 0; x < 21; ++x)
         {
-          Tile::draw(32*x - fmodf(scroll_x, 32), y * 32,
+          Tile::draw(32*x - fmodf(scroll_x, 32), y * 32 - fmodf(scroll_y, 32),
                      level->fg_tiles[(int)y + (int)(scroll_y / 32)][(int)x + (int)(scroll_x / 32)]);
         }
     }