diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-31 17:31:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-31 17:31:46 +0300 |
commit | 02677a3b9b3abefb84e24023697466c892c6ded4 (patch) | |
tree | 4e563d4fb0af1a8fb8e99a5b97c58281a21d3182 /src/resources/itemdb.cpp | |
parent | d4e5b8fb2b9b72e750845b874f3e60d3aea31543 (diff) | |
download | manaverse-02677a3b9b3abefb84e24023697466c892c6ded4.tar.gz manaverse-02677a3b9b3abefb84e24023697466c892c6ded4.tar.bz2 manaverse-02677a3b9b3abefb84e24023697466c892c6ded4.tar.xz manaverse-02677a3b9b3abefb84e24023697466c892c6ded4.zip |
Add support for each hair style own palete.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 8d4cf8002..cf05a28f0 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -213,9 +213,20 @@ void ItemDB::load() // std::string removeSprite = XML::getProperty(node, "removeSprite", ""); std::string colors; if (serverVersion >= 1) + { colors = XML::getProperty(node, "colors", ""); + + // check for empty hair palete + if (colors.empty() && id <= -1 && id > -100) + colors = "hair"; + } else - colors = ""; + { + if (id <= -1 && id > -100) + colors = "hair"; + else + colors = ""; + } std::string tags[3]; tags[0] = XML::getProperty(node, "tag", |