summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-12 19:47:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-12 20:06:32 +0300
commit10e1a4858db10445f4c9b3f7b5574612e28a57a5 (patch)
treeedee24516f9310fb6ffeb5df2ef64874215830d9 /src/net/eathena/beinghandler.cpp
parent650ed453901c51b75234523fd70bd3d07d2244bc (diff)
downloadplus-10e1a4858db10445f4c9b3f7b5574612e28a57a5.tar.gz
plus-10e1a4858db10445f4c9b3f7b5574612e28a57a5.tar.bz2
plus-10e1a4858db10445f4c9b3f7b5574612e28a57a5.tar.xz
plus-10e1a4858db10445f4c9b3f7b5574612e28a57a5.zip
Send equipped cards to function processBeingChangeLookContinue.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index f08344abc..90a53dd50 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -517,7 +517,7 @@ void BeingHandler::processBeingChangeLook2(Net::MessageIn &msg)
if (!localPlayer || !dstBeing)
return;
- processBeingChangeLookContinue(msg, dstBeing, type, id, id2);
+ processBeingChangeLookContinue(msg, dstBeing, type, id, id2, nullptr);
}
void BeingHandler::processBeingChangeLookCards(Net::MessageIn &msg)
@@ -525,6 +525,8 @@ void BeingHandler::processBeingChangeLookCards(Net::MessageIn &msg)
if (!actorManager)
return;
+ uint16_t cards[4];
+
Being *const dstBeing = actorManager->findBeing(
msg.readBeingId("being id"));
const uint8_t type = msg.readUInt8("type");
@@ -535,19 +537,21 @@ void BeingHandler::processBeingChangeLookCards(Net::MessageIn &msg)
id2 = 1;
for (int f = 0; f < 4; f ++)
- msg.readInt16("card"); // +++ ignore cards for now
+ cards[f] = msg.readInt16("card");
if (!localPlayer || !dstBeing)
return;
- processBeingChangeLookContinue(msg, dstBeing, type, id, id2);
+ processBeingChangeLookContinue(msg, dstBeing, type, id, id2, &cards[0]);
}
void BeingHandler::processBeingChangeLookContinue(Net::MessageIn &msg,
Being *const dstBeing,
const uint8_t type,
const int id,
- const int id2)
+ const int id2,
+ const uint16_t *cards
+ A_UNUSED)
{
if (dstBeing->getType() == ActorType::Player)
dstBeing->setOtherTime();