summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-15 18:02:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-15 18:17:20 +0300
commit430f472b0e358ebb2cc7f2113c606f2ea03f7739 (patch)
treee0c5cca9455248b66ce86c2c32e45ab2192ccbbb /src/resources/mapreader.cpp
parentdfb43b30af56e9d7b00115e8a2a2f21a4f308227 (diff)
downloadmanaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.gz
manaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.bz2
manaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.xz
manaplus-430f472b0e358ebb2cc7f2113c606f2ea03f7739.zip
Improve a bit map draw performance.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 421915775..7b21cd1d0 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -462,6 +462,7 @@ Map *MapReader::readMap(XmlNodePtrConst node, const std::string &path)
map->setWalkLayer(resman->getWalkLayer(fileName, map));
unloadTempLayers();
BLOCK_END("MapReader::readMap xml")
+ map->updateDrawLayersList();
return map;
}
@@ -1064,6 +1065,7 @@ Map *MapReader::createEmptyMap(const std::string &restrict filename,
map->addLayer(layer);
layer = new MapLayer(0, 0, 300, 300, true, 1);
map->addLayer(layer);
+ map->updateDrawLayersList();
return map;
}