summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-21 15:27:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-21 15:27:11 +0300
commitfbadc806e050929f44b54fc2973a28d2fdfc516c (patch)
treeb233a68db2a42025cc68934cd0f71ca21120c581 /src/net/eathena
parent3d524b386e3dd6d89d481749cd0015bff247a703 (diff)
downloadmv-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.gz
mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.bz2
mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.xz
mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.zip
In Being split setSprite into setSpriteColor and setSpriteColorId.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/charserverrecv.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp
index 3ddb6af95..38cca2208 100644
--- a/src/net/eathena/charserverrecv.cpp
+++ b/src/net/eathena/charserverrecv.cpp
@@ -129,10 +129,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
const int option A_UNUSED = (msg.readInt16("weapon") | 1) ^ 1;
const int weapon = 0;
- tempPlayer->setSprite(SPRITE_BODY,
- weapon,
- "",
- ItemColor_one);
+ tempPlayer->setSpriteId(SPRITE_BODY,
+ weapon);
tempPlayer->setWeaponId(weapon);
data.mAttributes[Attributes::LEVEL] = msg.readInt16("level");
@@ -151,11 +149,10 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
}
else
{
- tempPlayer->setSprite(SPRITE_HAIR_COLOR,
+ tempPlayer->setSpriteColor(SPRITE_HAIR_COLOR,
hairStyle * -1,
ItemDB::get(-hairStyle).getDyeColorsString(
- color),
- ItemColor_one);
+ color));
}
const uint16_t look = msg.readInt16("clothes color");