diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-06 22:35:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-06 22:35:47 +0300 |
commit | ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51 (patch) | |
tree | 4a189407ebb6240fd52b1909f38cb539ac1ef029 /src/resources/db/mapdb.cpp | |
parent | 89c3f9e88ab1a11959eacc18c6b4c9fb6e4a3dc9 (diff) | |
download | plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.gz plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.bz2 plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.xz plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.zip |
Load special tilesets in ignored atlas.
Special tilesets for now is collision and levels.
After can be other.
Diffstat (limited to 'src/resources/db/mapdb.cpp')
-rw-r--r-- | src/resources/db/mapdb.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp index 5e9f31cfc..48d234bb4 100644 --- a/src/resources/db/mapdb.cpp +++ b/src/resources/db/mapdb.cpp @@ -210,3 +210,15 @@ const MapInfo *MapDB::getMapAtlas(const std::string &name) info->files = &((*it2).second); return info; } + +const MapInfo *MapDB::getAtlas(const std::string &name) +{ + MapInfo *const info = new MapInfo; + + const AtlasCIter it = mAtlases.find(name); + if (it == mAtlases.end()) + return nullptr; + info->atlas = name; + info->files = &(*it).second; + return info; +} |