summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-08 19:35:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-08 19:35:18 +0300
commit93e5a6fbfba642e4e3ff85dcf7bc3c02bada5649 (patch)
tree3561909ed91fb58b03a7d5bd815fcff91bfe5e30 /src/net/eathena/beingrecv.cpp
parent8685a2564a96c6819fc0854891293747232fe02a (diff)
downloadmv-93e5a6fbfba642e4e3ff85dcf7bc3c02bada5649.tar.gz
mv-93e5a6fbfba642e4e3ff85dcf7bc3c02bada5649.tar.bz2
mv-93e5a6fbfba642e4e3ff85dcf7bc3c02bada5649.tar.xz
mv-93e5a6fbfba642e4e3ff85dcf7bc3c02bada5649.zip
Add setWeaponId into Being class.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 1664cd77a..bcfaa06eb 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -166,6 +166,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
itemColor,
IsWeapon_true,
cards);
+ dstBeing->setWeaponId(id);
dstBeing->setSprite(SPRITE_FLOOR,
id2,
std::string(),
@@ -490,6 +491,7 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
"",
ItemColor_one,
IsWeapon_true);
+ dstBeing->setWeaponId(weapon);
// Ea::BeingRecv::setSprite(dstBeing, SPRITE_FLOOR, shield);
}
else if (dstBeing->getType() == ActorType::Npc
@@ -696,6 +698,7 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
"",
ItemColor_one,
IsWeapon_true);
+ dstBeing->setWeaponId(weapon);
}
// Ea::BeingRecv::setSprite(dstBeing, SPRITE_FLOOR, shield);
}
@@ -900,6 +903,7 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg)
"",
ItemColor_one,
IsWeapon_true);
+ dstBeing->setWeaponId(weapon);
// Ea::BeingRecv::setSprite(dstBeing, SPRITE_FLOOR, shield);
}
else if (dstBeing->getType() == ActorType::Npc