diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-08 19:16:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-08 19:46:06 +0300 |
commit | 0ca85613f16a732ca92cd1b665fe417479c25fe1 (patch) | |
tree | 78d4b33f4b28694f3ff16528b432155f6bc24f48 | |
parent | 6f51329225efbf5c435d087df3d3e855e93c62b6 (diff) | |
download | manaplus-0ca85613f16a732ca92cd1b665fe417479c25fe1.tar.gz manaplus-0ca85613f16a732ca92cd1b665fe417479c25fe1.tar.bz2 manaplus-0ca85613f16a732ca92cd1b665fe417479c25fe1.tar.xz manaplus-0ca85613f16a732ca92cd1b665fe417479c25fe1.zip |
add atlas for common/shared images between maps.
This atlas automatically will be used in all maps.
Good place for storing particle effects.
Atlas name is "all".
-rw-r--r-- | src/resources/mapdb.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/mapdb.cpp b/src/resources/mapdb.cpp index d27d2f8ba..9dbf17949 100644 --- a/src/resources/mapdb.cpp +++ b/src/resources/mapdb.cpp @@ -115,6 +115,15 @@ void MapDB::readAtlas(XmlNodePtr node) mAtlases[atlas].push_back(file); } } + if (atlas != "all") + { + const AtlasCIter &allAtlas = mAtlases.find("all"); + if (allAtlas != mAtlases.end()) + { + FOR_EACH (StringVectCIter, it, (*allAtlas).second) + mAtlases[atlas].push_back(*it); + } + } } void MapDB::loadInfo() |