From cfac8c3bf717a49adcd3998ba90151abe747ab0b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Feb 2017 14:58:44 +0300 Subject: Remove extra checks from special layer drawing. --- src/resources/map/maplayer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/resources/map') diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 15a0bf5eb..95e835302 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -420,11 +420,8 @@ void MapLayer::drawSpecialLayer(Graphics *const graphics, { const int px1 = x * mapTileSize - scrollX; const MapItem *const item = mTempLayer->mTiles[ptr + x]; - if (item) - { - item->draw(graphics, px1, py1, - mapTileSize, mapTileSize); - } + item->draw(graphics, px1, py1, + mapTileSize, mapTileSize); x += mTempLayer->mCache[ptr + x]; } } -- cgit v1.2.3-70-g09d2