summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
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