diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-26 15:47:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-26 15:47:39 +0300 |
commit | 9fe86d302838c62034c0bf6c74d8ca47722bd40b (patch) | |
tree | 58aa24b936547f3489788d5afb1045c89d5029fa /src/resources/mapdb.cpp | |
parent | 61e3fa8513c1bc2644348ac6052ab87785fb119d (diff) | |
download | manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.gz manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.bz2 manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.xz manaverse-9fe86d302838c62034c0bf6c74d8ca47722bd40b.zip |
dehardcode client data configuration file names.
Now names stored in paths.xml
Diffstat (limited to 'src/resources/mapdb.cpp')
-rw-r--r-- | src/resources/mapdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapdb.cpp b/src/resources/mapdb.cpp index 621387175..d27d2f8ba 100644 --- a/src/resources/mapdb.cpp +++ b/src/resources/mapdb.cpp @@ -54,7 +54,7 @@ void MapDB::load() void MapDB::loadRemap() { XML::Document *const doc = new XML::Document( - paths.getStringValue("maps").append("remap.xml")); + paths.getStringValue("mapsRemapFile")); const XmlNodePtr root = doc->rootNode(); if (!root) @@ -119,7 +119,7 @@ void MapDB::readAtlas(XmlNodePtr node) void MapDB::loadInfo() { - XML::Document *doc = new XML::Document("maps.xml"); + XML::Document *doc = new XML::Document(paths.getStringValue("mapsFile")); const XmlNodePtr root = doc->rootNode(); if (!root) { |