summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-11 23:40:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-12 01:39:53 +0300
commit95100fc5191ea6e2e379ca73cd4e67bee4376ba1 (patch)
tree1232af2b6d9a85e28a46b126140af54d8de3b9fc /src/being.cpp
parentfe01452d2448a8033dfff33a052f5a674dfc1a43 (diff)
downloadmanaverse-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.gz
manaverse-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.bz2
manaverse-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.xz
manaverse-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.zip
add support for player look.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp9
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);
}
}