summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-26 01:31:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-26 01:31:38 +0300
commit85d58aef208ae7c1f0ef5d449e17a1410a6eb04d (patch)
treed50ea0b708b9ae00432deb54e4def67e26c0796b /src/map.cpp
parentd1153fc8c1f226d802e82cba7d11c686998a1523 (diff)
downloadmanaplus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.tar.gz
manaplus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.tar.bz2
manaplus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.tar.xz
manaplus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.zip
Add support for manual compression selection.
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