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/statuseffect.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/statuseffect.cpp')
-rw-r--r-- | src/statuseffect.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp index 7d00eb5ab..9171028f7 100644 --- a/src/statuseffect.cpp +++ b/src/statuseffect.cpp @@ -33,8 +33,6 @@ #include "debug.h" -static const char *const STATUS_EFFECTS_FILE = "status-effects.xml"; - static void unloadMap(std::map<int, StatusEffect *> &map); bool StatusEffect::mLoaded = false; @@ -129,7 +127,7 @@ void StatusEffect::load() if (mLoaded) unload(); - XML::Document doc(STATUS_EFFECTS_FILE); + XML::Document doc(paths.getStringValue("statusEffectsFile")); const XmlNodePtr rootNode = doc.rootNode(); if (!rootNode || !xmlNameEqual(rootNode, "status-effects")) |