diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-28 22:49:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-28 22:49:50 +0300 |
commit | 91e868fdf2e1d291c5a036c318ca0912dc542741 (patch) | |
tree | 0c581765ec3e649112f53c847791bd34ee4f8200 | |
parent | a83513ef88a9cfca8692db9176b68ddeea71931f (diff) | |
download | plus-91e868fdf2e1d291c5a036c318ca0912dc542741.tar.gz plus-91e868fdf2e1d291c5a036c318ca0912dc542741.tar.bz2 plus-91e868fdf2e1d291c5a036c318ca0912dc542741.tar.xz plus-91e868fdf2e1d291c5a036c318ca0912dc542741.zip |
Allow load itemcolors.xml file in legacy servers.
-rw-r--r-- | src/resources/db/colordb.cpp | 9 |
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()) |