diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-11 23:40:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-12 01:39:53 +0300 |
commit | 95100fc5191ea6e2e379ca73cd4e67bee4376ba1 (patch) | |
tree | 1232af2b6d9a85e28a46b126140af54d8de3b9fc /src/being.cpp | |
parent | fe01452d2448a8033dfff33a052f5a674dfc1a43 (diff) | |
download | plus-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.gz plus-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.bz2 plus-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.xz plus-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.zip |
add support for player look.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 37a1cb84d..e0d849ce3 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -280,15 +280,20 @@ void Being::setSubtype(const uint16_t subtype, const uint8_t look) id = -100; // TRANSLATORS: default race name setRaceName(_("Human")); + if (Net::getCharServerHandler()) + setSprite(Net::getCharServerHandler()->baseSprite(), id); } else { const ItemInfo &info = ItemDB::get(id); setRaceName(info.getName()); + if (Net::getCharServerHandler()) + { + setSprite(Net::getCharServerHandler()->baseSprite(), + id, info.getColor(mLook)); + } } - if (Net::getCharServerHandler()) - setSprite(Net::getCharServerHandler()->baseSprite(), id); } } |