summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
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();