diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-24 19:22:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-24 19:22:48 +0300 |
commit | e335a103fc63fa8ab2aec24fae370ed5d8051ae5 (patch) | |
tree | 49955bbafeb11dacb21c93c19798d55328084b06 | |
parent | 578898dfed40d73a5b13677e12819e46eb650102 (diff) | |
download | mv-e335a103fc63fa8ab2aec24fae370ed5d8051ae5.tar.gz mv-e335a103fc63fa8ab2aec24fae370ed5d8051ae5.tar.bz2 mv-e335a103fc63fa8ab2aec24fae370ed5d8051ae5.tar.xz mv-e335a103fc63fa8ab2aec24fae370ed5d8051ae5.zip |
Fix map layers draw again.
-rw-r--r-- | src/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 97d074333..7ec32ac12 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 - 1; + const int startX = scrollX / mTileWidth - 2; const int startY = scrollY / mTileHeight; const int endX = (graphics->mWidth + scrollX + mTileWidth - 1) / mTileWidth; |