From: Ryan Flegel Date: Tue, 11 May 2004 23:30:50 +0000 (+0000) Subject: - fixed vscroll a bit--forgot foreground X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=de20db8e87d59e923428410527c25b2a2626a899;p=supertux.git - fixed vscroll a bit--forgot foreground SVN-Revision: 1119 --- diff --git a/src/world.cpp b/src/world.cpp index ae262df54..b05c1421f 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -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)]); } }