diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-08 18:26:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-08 18:55:05 +0300 |
commit | 53ccb4e767914782172c09ead9076f9fccaa5253 (patch) | |
tree | 2bcf886b7c0b25c4a757892148fcd5c3778403ea /src/net/tmwa | |
parent | e03f294796e1cd8d49d00fd86dc33959948924c7 (diff) | |
download | manaverse-53ccb4e767914782172c09ead9076f9fccaa5253.tar.gz manaverse-53ccb4e767914782172c09ead9076f9fccaa5253.tar.bz2 manaverse-53ccb4e767914782172c09ead9076f9fccaa5253.tar.xz manaverse-53ccb4e767914782172c09ead9076f9fccaa5253.zip |
Add setTempSprite method into Being.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 13 | ||||
-rw-r--r-- | src/net/tmwa/charserverrecv.cpp | 12 |
3 files changed, 0 insertions, 30 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index ec8aee8ef..c479e4ced 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -54,35 +54,30 @@ void BeingHandler::undress(Being *const being) const std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); being->setSprite(SPRITE_HEAD_BOTTOM, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); being->setSprite(SPRITE_CLOTHES_COLOR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); being->setSprite(SPRITE_HAIR, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); being->setSprite(SPRITE_SHOES, 0, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); } diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index 57b295a8d..98f030f12 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -148,14 +148,12 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, "", ItemColor_one, IsWeapon_true, - IsTempSprite_false, nullptr); dstBeing->setSprite(SPRITE_FLOOR, id2, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; @@ -165,7 +163,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_WEAPON); break; @@ -175,7 +172,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_CLOTHES_COLOR); break; @@ -185,7 +181,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_BOTTOM); break; @@ -202,7 +197,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; @@ -212,7 +206,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HAIR); break; @@ -222,7 +215,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_SHOES); break; @@ -232,7 +224,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_SHIELD); break; @@ -242,7 +233,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_TOP); break; @@ -252,7 +242,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_MID); break; @@ -262,7 +251,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_ROBE); break; @@ -272,7 +260,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, color, ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL2); break; diff --git a/src/net/tmwa/charserverrecv.cpp b/src/net/tmwa/charserverrecv.cpp index 15c8aa7a0..a940799ba 100644 --- a/src/net/tmwa/charserverrecv.cpp +++ b/src/net/tmwa/charserverrecv.cpp @@ -109,7 +109,6 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, "", ItemColor_one, IsWeapon_true, - IsTempSprite_false, nullptr); data.mAttributes[Attributes::LEVEL] = msg.readInt16("level"); @@ -131,7 +130,6 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); } else @@ -141,7 +139,6 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, ItemDB::get(-hairStyle).getDyeColorsString(hairColor), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); } tempPlayer->setHairColor(hairColor); @@ -163,63 +160,54 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_SHOES, gloves, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_SHIELD, cape, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_HEAD_TOP, misc1, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_WEAPON, bottomClothes, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_FLOOR, shield, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_CLOTHES_COLOR, hat, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_HEAD_BOTTOM, topClothes, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); tempPlayer->setSprite(SPRITE_HEAD_MID, misc2, std::string(), ItemColor_one, IsWeapon_false, - IsTempSprite_false, nullptr); character->slot = msg.readUInt8("slot"); |