From 9051b31ce7aa20b8497fc9922d8d62620766e274 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Tue, 11 May 2004 23:25:06 +0000 Subject: [PATCH] - fixed vscroll a bit SVN-Revision: 1118 --- src/world.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world.cpp b/src/world.cpp index 43b053282..ae262df54 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -201,7 +201,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->bg_tiles[(int)y + (int)(scroll_y / 32)][(int)x + (int)(scroll_x / 32)]); } } @@ -211,7 +211,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->ia_tiles[(int)y + (int)(scroll_y / 32)][(int)x + (int)(scroll_x / 32)]); } } -- 2.11.0