diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-08 18:18:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-08 18:18:18 +0300 |
commit | e03f294796e1cd8d49d00fd86dc33959948924c7 (patch) | |
tree | aea8504dd7e510c8669cffd18f8c4200f8473470 /src/net/tmwa/charserverrecv.cpp | |
parent | 025e9b12601079e7aeaaaa25225e9dadc376240a (diff) | |
download | manaplus-e03f294796e1cd8d49d00fd86dc33959948924c7.tar.gz manaplus-e03f294796e1cd8d49d00fd86dc33959948924c7.tar.bz2 manaplus-e03f294796e1cd8d49d00fd86dc33959948924c7.tar.xz manaplus-e03f294796e1cd8d49d00fd86dc33959948924c7.zip |
Remove default value from parameter cards in Being->setSprite.
Diffstat (limited to 'src/net/tmwa/charserverrecv.cpp')
-rw-r--r-- | src/net/tmwa/charserverrecv.cpp | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/src/net/tmwa/charserverrecv.cpp b/src/net/tmwa/charserverrecv.cpp index ba4088898..15c8aa7a0 100644 --- a/src/net/tmwa/charserverrecv.cpp +++ b/src/net/tmwa/charserverrecv.cpp @@ -109,7 +109,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, "", ItemColor_one, IsWeapon_true, - IsTempSprite_false); + IsTempSprite_false, + nullptr); data.mAttributes[Attributes::LEVEL] = msg.readInt16("level"); @@ -130,7 +131,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } else { @@ -139,7 +141,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, ItemDB::get(-hairStyle).getDyeColorsString(hairColor), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } tempPlayer->setHairColor(hairColor); @@ -160,55 +163,64 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_SHOES, gloves, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_SHIELD, cape, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_HEAD_TOP, misc1, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_WEAPON, bottomClothes, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_FLOOR, shield, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_CLOTHES_COLOR, hat, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_HEAD_BOTTOM, topClothes, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); tempPlayer->setSprite(SPRITE_HEAD_MID, misc2, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); character->slot = msg.readUInt8("slot"); const uint8_t sex = CAST_U8(msg.readUInt8("gender")); |