summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 23:50:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 23:50:01 +0300
commitb17621a3bc0aa72aaf11b1dc8c397610688533b0 (patch)
treea0d163f17bd9060ae76f791f5fa36aa3d5a512d2 /src/resources/db
parentd1d8b4e1c28911c551ef7331fd76085d5d62fe6a (diff)
downloadmanaplus-b17621a3bc0aa72aaf11b1dc8c397610688533b0.tar.gz
manaplus-b17621a3bc0aa72aaf11b1dc8c397610688533b0.tar.bz2
manaplus-b17621a3bc0aa72aaf11b1dc8c397610688533b0.tar.xz
manaplus-b17621a3bc0aa72aaf11b1dc8c397610688533b0.zip
Add include support in remap db.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/mapdb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp
index f0c9d988c..371085cb6 100644
--- a/src/resources/db/mapdb.cpp
+++ b/src/resources/db/mapdb.cpp
@@ -82,6 +82,13 @@ void MapDB::loadRemapXmlFile(const std::string &fileName)
mMaps[name] = value;
}
+ else if (xmlNameEqual(node, "include"))
+ {
+ const std::string name = XML::getProperty(node, "name", "");
+ if (!name.empty())
+ loadRemapXmlFile(name);
+ continue;
+ }
}
delete doc;