diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-08 20:16:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-08 20:16:41 +0300 |
commit | 845a02e65d8077f4079724a106f75470984df8d2 (patch) | |
tree | e6ab2efdd3d408dbb235fc6b3f7591ac0b017a51 /src/net/tmwa/beingrecv.cpp | |
parent | 93e5a6fbfba642e4e3ff85dcf7bc3c02bada5649 (diff) | |
download | manaplus-845a02e65d8077f4079724a106f75470984df8d2.tar.gz manaplus-845a02e65d8077f4079724a106f75470984df8d2.tar.bz2 manaplus-845a02e65d8077f4079724a106f75470984df8d2.tar.xz manaplus-845a02e65d8077f4079724a106f75470984df8d2.zip |
Simplify set weapon sprite.
Diffstat (limited to 'src/net/tmwa/beingrecv.cpp')
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index a219203cc..73fa7b87c 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -147,14 +147,12 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, "", ItemColor_one, - IsWeapon_true, nullptr); dstBeing->setWeaponId(id); dstBeing->setSprite(SPRITE_FLOOR, id2, std::string(), ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; @@ -163,7 +161,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_WEAPON); break; @@ -172,7 +169,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_CLOTHES_COLOR); break; @@ -181,7 +177,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_BOTTOM); break; @@ -197,7 +192,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR); break; @@ -206,7 +200,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HAIR); break; @@ -215,7 +208,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_SHOES); break; @@ -224,7 +216,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_SHIELD); break; @@ -233,7 +224,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_TOP); break; @@ -242,7 +232,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_MID); break; @@ -251,7 +240,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_ROBE); break; @@ -260,7 +248,6 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg, id, color, ItemColor_one, - IsWeapon_false, nullptr); localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL2); break; @@ -369,8 +356,7 @@ void BeingRecv::processPlayerUpdate1(Net::MessageIn &msg) dstBeing->updateSprite(SPRITE_BODY, weapon, "", - ItemColor_one, - IsWeapon_true); + ItemColor_one); dstBeing->setWeaponId(weapon); dstBeing->updateSprite(SPRITE_FLOOR, shield); dstBeing->updateSprite(SPRITE_WEAPON, headBottom); @@ -516,8 +502,7 @@ void BeingRecv::processPlayerUpdate2(Net::MessageIn &msg) dstBeing->updateSprite(SPRITE_BODY, weapon, "", - ItemColor_one, - IsWeapon_true); + ItemColor_one); dstBeing->setWeaponId(weapon); dstBeing->updateSprite(SPRITE_FLOOR, shield); dstBeing->updateSprite(SPRITE_WEAPON, headBottom); @@ -663,8 +648,7 @@ void BeingRecv::processPlayerMove(Net::MessageIn &msg) dstBeing->updateSprite(SPRITE_BODY, weapon, "", - ItemColor_one, - IsWeapon_true); + ItemColor_one); dstBeing->setWeaponId(weapon); dstBeing->updateSprite(SPRITE_FLOOR, shield); dstBeing->updateSprite(SPRITE_WEAPON, headBottom); @@ -918,8 +902,7 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg) SPRITE_BODY, weapon, "", - ItemColor_one, - IsWeapon_true); + ItemColor_one); dstBeing->setWeaponId(weapon); Ea::BeingRecv::setSprite(dstBeing, SPRITE_FLOOR, shield); } @@ -1136,8 +1119,7 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg) SPRITE_BODY, weapon, "", - ItemColor_one, - IsWeapon_true); + ItemColor_one); dstBeing->setWeaponId(weapon); Ea::BeingRecv::setSprite(dstBeing, SPRITE_FLOOR, shield); } |