diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-21 15:27:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-21 15:27:11 +0300 |
commit | fbadc806e050929f44b54fc2973a28d2fdfc516c (patch) | |
tree | b233a68db2a42025cc68934cd0f71ca21120c581 /src/net/tmwa/charserverrecv.cpp | |
parent | 3d524b386e3dd6d89d481749cd0015bff247a703 (diff) | |
download | manaplus-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.gz manaplus-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.bz2 manaplus-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.xz manaplus-fbadc806e050929f44b54fc2973a28d2fdfc516c.zip |
In Being split setSprite into setSpriteColor and setSpriteColorId.
Diffstat (limited to 'src/net/tmwa/charserverrecv.cpp')
-rw-r--r-- | src/net/tmwa/charserverrecv.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/net/tmwa/charserverrecv.cpp b/src/net/tmwa/charserverrecv.cpp index 242e3e489..e54b092e0 100644 --- a/src/net/tmwa/charserverrecv.cpp +++ b/src/net/tmwa/charserverrecv.cpp @@ -104,10 +104,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, const uint16_t look = msg.readUInt8("look"); tempPlayer->setSubtype(fromInt(race, BeingTypeId), look); const uint16_t weapon = msg.readInt16("weapon"); - tempPlayer->setSprite(SPRITE_BODY, - weapon, - "", - ItemColor_one); + tempPlayer->setSpriteId(SPRITE_BODY, + weapon); tempPlayer->setWeaponId(weapon); data.mAttributes[Attributes::LEVEL] = msg.readInt16("level"); @@ -128,10 +126,9 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, } else { - tempPlayer->setSprite(SPRITE_HAIR_COLOR, + tempPlayer->setSpriteColor(SPRITE_HAIR_COLOR, hairStyle * -1, - ItemDB::get(-hairStyle).getDyeColorsString(hairColor), - ItemColor_one); + ItemDB::get(-hairStyle).getDyeColorsString(hairColor)); } tempPlayer->setHairColor(hairColor); |