summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-01 14:58:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-01 14:58:44 +0300
commitcfac8c3bf717a49adcd3998ba90151abe747ab0b (patch)
tree2c7724e523c07296787965a814e114dad2de24cc /src/resources
parentd7bab2611a940265583bcd22401199ae23ecbe94 (diff)
downloadplus-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')
-rw-r--r--src/resources/map/maplayer.cpp7
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];
}
}