From 9fe86d302838c62034c0bf6c74d8ca47722bd40b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 May 2013 15:47:39 +0300 Subject: dehardcode client data configuration file names. Now names stored in paths.xml --- src/statuseffect.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/statuseffect.cpp') 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 &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")) -- cgit v1.2.3-70-g09d2