summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 21:09:41 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 22:01:14 +0300
commit0c06037af71273481958ba8587bbb4082d1ed822 (patch)
treed20ac88eb7654dab57975d6f02f22ad0d9314872 /src/resources/mapreader.cpp
parente8b2a5596f569e72e0e7482e8f41aaf7e710d8ec (diff)
downloadplus-0c06037af71273481958ba8587bbb4082d1ed822.tar.gz
plus-0c06037af71273481958ba8587bbb4082d1ed822.tar.bz2
plus-0c06037af71273481958ba8587bbb4082d1ed822.tar.xz
plus-0c06037af71273481958ba8587bbb4082d1ed822.zip
Improve drawing tiles.
Remove check for existing tile image in each tile. From now tiles without image hidden.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 215d5c13e..a10c5cedd 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -291,6 +291,7 @@ Map *MapReader::readMap(const std::string &restrict filename,
updateMusic(map);
map->updateConditionLayers();
+ map->preCacheLayers();
}
BLOCK_END("MapReader::readMap str")