diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-01 14:58:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-01 14:58:44 +0300 |
commit | cfac8c3bf717a49adcd3998ba90151abe747ab0b (patch) | |
tree | 2c7724e523c07296787965a814e114dad2de24cc /src/resources/map | |
parent | d7bab2611a940265583bcd22401199ae23ecbe94 (diff) | |
download | plus-cfac8c3bf717a49adcd3998ba90151abe747ab0b.tar.gz plus-cfac8c3bf717a49adcd3998ba90151abe747ab0b.tar.bz2 plus-cfac8c3bf717a49adcd3998ba90151abe747ab0b.tar.xz plus-cfac8c3bf717a49adcd3998ba90151abe747ab0b.zip |
Remove extra checks from special layer drawing.
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/maplayer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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]; } } |