From e03f294796e1cd8d49d00fd86dc33959948924c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jun 2016 18:18:18 +0300 Subject: Remove default value from parameter cards in Being->setSprite. --- src/actormanager.cpp | 9 ++++--- src/being/being.cpp | 44 ++++++++++++++++++++----------- src/being/being.h | 2 +- src/gui/windows/charcreatedialog.cpp | 6 +++-- src/net/eathena/beinghandler.cpp | 45 ++++++++++++++++++++----------- src/net/eathena/beingrecv.cpp | 51 ++++++++++++++++++++++++------------ src/net/eathena/charserverrecv.cpp | 33 +++++++++++++++-------- src/net/tmwa/beinghandler.cpp | 15 +++++++---- src/net/tmwa/beingrecv.cpp | 39 ++++++++++++++++++--------- src/net/tmwa/charserverrecv.cpp | 36 ++++++++++++++++--------- 10 files changed, 186 insertions(+), 94 deletions(-) diff --git a/src/actormanager.cpp b/src/actormanager.cpp index c254839ca..6d8b637af 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -2043,7 +2043,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing, std::string(), color, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } const int hairSlot = charServerHandler->hairSprite(); const int hairStyle = -srcBeing->getSpriteID(hairSlot); @@ -2055,7 +2056,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing, ItemDB::get(-hairStyle).getDyeColorsString(hairColor), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } else { @@ -2064,7 +2066,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } dstBeing->setHairColor(hairColor); return dstBeing; diff --git a/src/being/being.cpp b/src/being/being.cpp index d6d9f5f55..6bda045c9 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -501,7 +501,8 @@ void Being::setSubtype(const BeingTypeId subtype, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } } else @@ -515,7 +516,8 @@ void Being::setSubtype(const BeingTypeId subtype, info.getColor(fromInt(mLook, ItemColor)), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } } } @@ -2491,7 +2493,7 @@ void Being::updateSprite(const unsigned int slot, if (slot && mSpriteIDs[slot] == id) return; - setSprite(slot, id, color, colorId, isWeapon, isTempSprite); + setSprite(slot, id, color, colorId, isWeapon, isTempSprite, nullptr); } void Being::setSprite(const unsigned int slot, @@ -2619,7 +2621,8 @@ void Being::setSpriteID(const unsigned int slot, mSpriteColors[slot], ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } void Being::setSpriteColor(const unsigned int slot, @@ -2630,7 +2633,8 @@ void Being::setSpriteColor(const unsigned int slot, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } void Being::setHairStyle(const unsigned int slot, @@ -2642,7 +2646,8 @@ void Being::setHairStyle(const unsigned int slot, ItemDB::get(id).getDyeColorsString(mHairColor), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); // dumpSprites(); } @@ -2658,7 +2663,8 @@ void Being::setHairColor(const unsigned int slot, ItemDB::get(id).getDyeColorsString(color), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } } @@ -2848,7 +2854,8 @@ void Being::setGender(const GenderT gender) restrict2 mSpriteColors[i], ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } } @@ -3421,7 +3428,8 @@ void Being::recalcSpritesOrder() restrict2 mSpriteColors[remSprite], ItemColor_one, IsWeapon_false, - IsTempSprite_true); + IsTempSprite_true, + nullptr); } else { @@ -3430,7 +3438,8 @@ void Being::recalcSpritesOrder() restrict2 .getDyeColorsString(mHairColor), ItemColor_one, IsWeapon_false, - IsTempSprite_true); + IsTempSprite_true, + nullptr); } updatedSprite[remSprite] = true; } @@ -3454,7 +3463,8 @@ void Being::recalcSpritesOrder() restrict2 mSpriteColors[slot2], ItemColor_one, IsWeapon_false, - IsTempSprite_true); + IsTempSprite_true, + nullptr); } else { @@ -3464,7 +3474,8 @@ void Being::recalcSpritesOrder() restrict2 mHairColor), ItemColor_one, IsWeapon_false, - IsTempSprite_true); + IsTempSprite_true, + nullptr); } updatedSprite[slot2] = true; } @@ -3611,7 +3622,8 @@ void Being::recalcSpritesOrder() restrict2 mSpriteColors[slot], ItemColor_one, IsWeapon_false, - IsTempSprite_true); + IsTempSprite_true, + nullptr); } } } @@ -3628,7 +3640,8 @@ void Being::recalcSpritesOrder() restrict2 mSpriteColors[slot], ItemColor_one, IsWeapon_false, - IsTempSprite_true); + IsTempSprite_true, + nullptr); } } } @@ -3703,7 +3716,8 @@ void Being::undressItemById(const int id) restrict2 std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); break; } } diff --git a/src/being/being.h b/src/being/being.h index ccda5966f..6bfd13fc3 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -325,7 +325,7 @@ class Being notfinal : public ActorSprite, ItemColor colorId, const IsWeapon isWeapon, const IsTempSprite isTempSprite, - const int *const cards = nullptr) + const int *const cards) restrict2; void updateSprite(const unsigned int slot, diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index f100afee9..72ab6626b 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -161,7 +161,8 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } if (!maxHairColor) @@ -775,7 +776,8 @@ void CharCreateDialog::updateHair() item.getDyeColorsString(fromInt(mHairColor, ItemColor)), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } void CharCreateDialog::updateRace() diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 3274c56ee..8ad438a09 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -55,91 +55,106 @@ void BeingHandler::undress(Being *const being) const std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_HEAD_BOTTOM, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_HEAD_TOP, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_HEAD_MID, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_CLOTHES_COLOR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_SHIELD, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_FLOOR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_ROBE, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_EVOL2, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_EVOL3, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_EVOL4, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_EVOL5, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_EVOL6, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_HAIR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_SHOES, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } void BeingHandler::requestRanks(const RankT rank) const diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index 93fad8f4d..0c673be9f 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -165,13 +165,15 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, "", itemColor, IsWeapon_true, - IsTempSprite_false); + IsTempSprite_false, + cards); dstBeing->setSprite(SPRITE_FLOOR, id2, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; @@ -181,7 +183,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_WEAPON); break; @@ -191,7 +194,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_CLOTHES_COLOR); break; @@ -202,7 +206,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_BOTTOM); break; @@ -222,7 +227,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; @@ -232,7 +238,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_HAIR); break; @@ -242,7 +249,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_SHOES); break; @@ -252,7 +260,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_SHIELD); break; @@ -262,7 +271,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_TOP); break; @@ -272,7 +282,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_MID); break; @@ -282,7 +293,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_ROBE); break; @@ -292,7 +304,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL2); break; @@ -302,7 +315,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL3); break; @@ -312,7 +326,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL4); break; @@ -322,7 +337,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL5); break; @@ -332,7 +348,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, itemColor, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + cards); if (localPlayer) localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL6); break; diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp index 817d21da6..4add9c820 100644 --- a/src/net/eathena/charserverrecv.cpp +++ b/src/net/eathena/charserverrecv.cpp @@ -134,7 +134,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, "", ItemColor_one, IsWeapon_true, - IsTempSprite_false); + IsTempSprite_false, + nullptr); data.mAttributes[Attributes::LEVEL] = msg.readInt16("level"); @@ -153,7 +154,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } else { @@ -163,7 +165,8 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, color), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } const uint16_t look = msg.readInt16("clothes color"); @@ -197,49 +200,57 @@ 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); } if (packetVersion >= 20110928) diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index a98db8a3a..ec8aee8ef 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -54,31 +54,36 @@ void BeingHandler::undress(Being *const being) const std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_HEAD_BOTTOM, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_CLOTHES_COLOR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_HAIR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); being->setSprite(SPRITE_SHOES, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); } #ifdef EATHENA_SUPPORT diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index 9cc5090ac..57b295a8d 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -148,13 +148,15 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, "", ItemColor_one, IsWeapon_true, - IsTempSprite_false); + IsTempSprite_false, + nullptr); dstBeing->setSprite(SPRITE_FLOOR, id2, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; case 3: // Change lower headgear for eAthena, pants for us @@ -163,7 +165,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_WEAPON); break; case 4: // Change upper headgear for eAthena, hat for us @@ -172,7 +175,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_CLOTHES_COLOR); break; case 5: // Change middle headgear for eathena, armor for us @@ -181,7 +185,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_BOTTOM); break; case 6: // eAthena LOOK_HAIR_COLOR @@ -197,7 +202,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; case 9: // eAthena LOOK_SHOES @@ -206,7 +212,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HAIR); break; case 10: // LOOK_GLOVES @@ -215,7 +222,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_SHOES); break; case 11: // LOOK_CAPE @@ -224,7 +232,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_SHIELD); break; case 12: @@ -233,7 +242,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_TOP); break; case 13: @@ -242,7 +252,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_MID); break; case 14: @@ -251,7 +262,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_ROBE); break; case 15: @@ -260,7 +272,8 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false); + IsTempSprite_false, + nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL2); break; case 16: 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")); -- cgit v1.2.3-70-g09d2