summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-28 22:49:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-28 22:49:50 +0300
commit91e868fdf2e1d291c5a036c318ca0912dc542741 (patch)
tree0c581765ec3e649112f53c847791bd34ee4f8200
parenta83513ef88a9cfca8692db9176b68ddeea71931f (diff)
downloadmanaverse-91e868fdf2e1d291c5a036c318ca0912dc542741.tar.gz
manaverse-91e868fdf2e1d291c5a036c318ca0912dc542741.tar.bz2
manaverse-91e868fdf2e1d291c5a036c318ca0912dc542741.tar.xz
manaverse-91e868fdf2e1d291c5a036c318ca0912dc542741.zip
Allow load itemcolors.xml file in legacy servers.
-rw-r--r--src/resources/db/colordb.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp
index a358bebe7..ad8314d4f 100644
--- a/src/resources/db/colordb.cpp
+++ b/src/resources/db/colordb.cpp
@@ -59,12 +59,9 @@ void ColorDB::load()
mColorLists["hair"] = colors;
- if (serverVersion >= 1)
- {
- loadColorLists(paths.getStringValue("itemColorsFile"));
- loadColorLists(paths.getStringValue("itemColorsPatchFile"));
- loadXmlDir("itemColorsPatchDir", loadColorLists);
- }
+ loadColorLists(paths.getStringValue("itemColorsFile"));
+ loadColorLists(paths.getStringValue("itemColorsPatchFile"));
+ loadXmlDir("itemColorsPatchDir", loadColorLists);
it = mColorLists.find("hair");
if (it != mColorLists.end())