summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-08 19:16:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-08 19:46:06 +0300
commit0ca85613f16a732ca92cd1b665fe417479c25fe1 (patch)
tree78d4b33f4b28694f3ff16528b432155f6bc24f48 /src/resources
parent6f51329225efbf5c435d087df3d3e855e93c62b6 (diff)
downloadplus-0ca85613f16a732ca92cd1b665fe417479c25fe1.tar.gz
plus-0ca85613f16a732ca92cd1b665fe417479c25fe1.tar.bz2
plus-0ca85613f16a732ca92cd1b665fe417479c25fe1.tar.xz
plus-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".
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/mapdb.cpp9
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()