diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-06 20:19:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-06 20:19:20 +0300 |
commit | 030beaba34912a9249b9219b43c7bdc1359859e6 (patch) | |
tree | 40e4cef8856bdc9e3401eed98dc69a27c758dca2 /src/resources/map/maplayer.cpp | |
parent | aaacae5e2907e21ff7c0505fd4e48442ac809136 (diff) | |
download | manaplus-030beaba34912a9249b9219b43c7bdc1359859e6.tar.gz manaplus-030beaba34912a9249b9219b43c7bdc1359859e6.tar.bz2 manaplus-030beaba34912a9249b9219b43c7bdc1359859e6.tar.xz manaplus-030beaba34912a9249b9219b43c7bdc1359859e6.zip |
Fix code style.
Diffstat (limited to 'src/resources/map/maplayer.cpp')
-rw-r--r-- | src/resources/map/maplayer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 0780cd8d1..74d5cacde 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -170,17 +170,13 @@ void MapLayer::draw(Graphics *const graphics, } const int x32 = x * mapTileSize; - int c = 0; const Image *const img = tilePtr->image; const int px = x32 + dx; const int py = py0 - img->mBounds.h; if (mSpecialFlag || img->mBounds.h <= mapTileSize) { - // here need not draw over player position - c = tilePtr->count; - - if (c == 0) + if (tilePtr->count == 0) { graphics->drawImage(img, px, py); } |