From 578898dfed40d73a5b13677e12819e46eb650102 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Jan 2013 18:13:48 +0300 Subject: Fix draw most left visible tiles in map layers. --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.cpp b/src/map.cpp index 1d4e0535c..97d074333 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -326,7 +326,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) // Calculate range of tiles which are on-screen const int endPixelY = graphics->mHeight + scrollY + mTileHeight - 1 + mMaxTileHeight - mTileHeight; - const int startX = scrollX / mTileWidth; + const int startX = scrollX / mTileWidth - 1; const int startY = scrollY / mTileHeight; const int endX = (graphics->mWidth + scrollX + mTileWidth - 1) / mTileWidth; -- cgit v1.2.3-70-g09d2