From 030beaba34912a9249b9219b43c7bdc1359859e6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Jan 2017 20:19:20 +0300 Subject: Fix code style. --- src/resources/map/maplayer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/resources/map/maplayer.cpp') 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); } -- cgit v1.2.3-60-g2f50