diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-15 01:28:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-15 01:28:41 +0300 |
commit | 785cec74c47ffa784a08b7e722fc1aab7a17bd69 (patch) | |
tree | 7eeba0fbd7aeef192fb47501c5a37cf9003c8ac1 /src/net/eathena/charserverhandler.cpp | |
parent | 0d8db34a591f4dd32e391076991887292b520be4 (diff) | |
download | plus-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/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index c3d3665ad..0b0af5033 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -200,7 +200,8 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, data.mAttributes[Attributes::MAX_MP] = msg.readInt16("max mp/sp"); msg.readInt16("speed"); - tempPlayer->setSubtype(msg.readInt16("class"), 0); + const int race = msg.readInt16("class"); +// tempPlayer->setSubtype(race, 0); const int hairStyle = msg.readInt16("hair style"); const int weapon = msg.readInt32("weapon"); @@ -218,7 +219,8 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, ItemDB::get(-hairStyle).getDyeColorsString( msg.readInt16("hair color"))); - const int misc2 = msg.readInt16("clothes color"); + const int look = msg.readInt16("clothes color"); + tempPlayer->setSubtype(race, look); tempPlayer->setName(msg.readString(24, "name")); character->dummy = tempPlayer; @@ -245,7 +247,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, tempPlayer->setSprite(SPRITE_CLOTHES_COLOR, hat); tempPlayer->setSprite(SPRITE_HEAD_BOTTOM, topClothes); - tempPlayer->setSprite(SPRITE_HEAD_MID, misc2); +// tempPlayer->setSprite(SPRITE_HEAD_MID, misc2); msg.readInt32("slot change"); tempPlayer->setRename(msg.readInt32("rename (inverse)")); |