diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-15 18:02:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-15 18:17:20 +0300 |
commit | 430f472b0e358ebb2cc7f2113c606f2ea03f7739 (patch) | |
tree | e0c5cca9455248b66ce86c2c32e45ab2192ccbbb /src/resources/mapreader.cpp | |
parent | dfb43b30af56e9d7b00115e8a2a2f21a4f308227 (diff) | |
download | mv-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.gz mv-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.bz2 mv-430f472b0e358ebb2cc7f2113c606f2ea03f7739.tar.xz mv-430f472b0e358ebb2cc7f2113c606f2ea03f7739.zip |
Improve a bit map draw performance.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 2 |
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; } |