summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-06 20:19:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-06 20:19:20 +0300
commit030beaba34912a9249b9219b43c7bdc1359859e6 (patch)
tree40e4cef8856bdc9e3401eed98dc69a27c758dca2 /src/resources/map/maplayer.cpp
parentaaacae5e2907e21ff7c0505fd4e48442ac809136 (diff)
downloadmanaverse-030beaba34912a9249b9219b43c7bdc1359859e6.tar.gz
manaverse-030beaba34912a9249b9219b43c7bdc1359859e6.tar.bz2
manaverse-030beaba34912a9249b9219b43c7bdc1359859e6.tar.xz
manaverse-030beaba34912a9249b9219b43c7bdc1359859e6.zip
Fix code style.
Diffstat (limited to 'src/resources/map/maplayer.cpp')
-rw-r--r--src/resources/map/maplayer.cpp6
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);
}