From 85d58aef208ae7c1f0ef5d449e17a1410a6eb04d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Jan 2013 01:31:38 +0300 Subject: Add support for manual compression selection. --- src/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 7ec32ac12..c6aea4fcb 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -329,8 +329,8 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) const int startX = scrollX / mTileWidth - 2; const int startY = scrollY / mTileHeight; const int endX = (graphics->mWidth + scrollX + mTileWidth - 1) - / mTileWidth; - const int endY = endPixelY / mTileHeight; + / mTileWidth + 1; + const int endY = endPixelY / mTileHeight + 1; // Make sure actors are sorted ascending by Y-coordinate // so that they overlap correctly -- cgit v1.2.3-60-g2f50