diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-05-01 02:08:35 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-05-01 02:08:35 +0200 |
commit | f2424b19159dfbab1c01bf29c615a7bf029b0762 (patch) | |
tree | 8eeef223832719b7d6e8e25119697d6d6cc81e74 /src | |
parent | 92fd074aa85e2357bfe1ab642209dd5a0d87e4d5 (diff) | |
download | mana-f2424b19159dfbab1c01bf29c615a7bf029b0762.tar.gz mana-f2424b19159dfbab1c01bf29c615a7bf029b0762.tar.bz2 mana-f2424b19159dfbab1c01bf29c615a7bf029b0762.tar.xz mana-f2424b19159dfbab1c01bf29c615a7bf029b0762.zip |
Look for <effects> tags in the effects.xml file.
This, instead, of <being-effects>, which is irrelevant, as
effects aren't only used for beings.
Diffstat (limited to 'src')
-rw-r--r-- | src/actorsprite.cpp | 2 | ||||
-rw-r--r-- | src/effectmanager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index 988a25e5..b4b56451 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -163,7 +163,7 @@ static EffectDescription *getEffectDescription(int effectId) XML::Document doc(EFFECTS_FILE); xmlNodePtr root = doc.rootNode(); - if (!root || !xmlStrEqual(root->name, BAD_CAST "being-effects")) + if (!root || !xmlStrEqual(root->name, BAD_CAST "effects")) { logger->log("Error loading being effects file: " EFFECTS_FILE); diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index 97dd53ff..45211c56 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -32,7 +32,7 @@ EffectManager::EffectManager() XML::Document doc("effects.xml"); xmlNodePtr root = doc.rootNode(); - if (!root || !xmlStrEqual(root->name, BAD_CAST "being-effects")) + if (!root || !xmlStrEqual(root->name, BAD_CAST "effects")) { logger->log("Error loading being effects file: effects.xml"); return; |