diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-26 01:31:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-26 01:31:38 +0300 |
commit | 85d58aef208ae7c1f0ef5d449e17a1410a6eb04d (patch) | |
tree | d50ea0b708b9ae00432deb54e4def67e26c0796b /src/map.cpp | |
parent | d1153fc8c1f226d802e82cba7d11c686998a1523 (diff) | |
download | plus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.tar.gz plus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.tar.bz2 plus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.tar.xz plus-85d58aef208ae7c1f0ef5d449e17a1410a6eb04d.zip |
Add support for manual compression selection.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
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 |