summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-15 01:28:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-15 01:28:41 +0300
commit785cec74c47ffa784a08b7e722fc1aab7a17bd69 (patch)
tree7eeba0fbd7aeef192fb47501c5a37cf9003c8ac1 /src/net/eathena/beinghandler.cpp
parent0d8db34a591f4dd32e391076991887292b520be4 (diff)
downloadplus-785cec74c47ffa784a08b7e722fc1aab7a17bd69.tar.gz
plus-785cec74c47ffa784a08b7e722fc1aab7a17bd69.tar.bz2
plus-785cec74c47ffa784a08b7e722fc1aab7a17bd69.tar.xz
plus-785cec74c47ffa784a08b7e722fc1aab7a17bd69.zip
eathena: use clothes color as player look.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index a3458c9f8..c2804586f 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -414,7 +414,8 @@ void BeingHandler::processBeingChangeLookContinue(Being *const dstBeing,
switch (type)
{
case 0: // change race
- dstBeing->setSubtype(static_cast<uint16_t>(id), 0);
+ dstBeing->setSubtype(static_cast<uint16_t>(id),
+ dstBeing->getLook());
break;
case 1: // eAthena LOOK_HAIR
dstBeing->setSpriteID(SPRITE_HAIR_COLOR, id *-1);
@@ -446,8 +447,8 @@ void BeingHandler::processBeingChangeLookContinue(Being *const dstBeing,
ItemDB::get(dstBeing->getSpriteID(
SPRITE_HAIR_COLOR)).getDyeColorsString(id));
break;
- case 7: // Clothes color
- // ignoring it
+ case 7: // Clothes color. Now used as look
+ dstBeing->setLook(id);
break;
case 8: // eAthena LOOK_SHIELD
if (!mHideShield)