From 7687f55bfc4ac690748de0f65fd9f84f63be4b59 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 13:31:50 +0300 Subject: eathena: add comments into processBeingChangeDirection. --- src/net/eathena/beinghandler.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index c68be6f24..71e1d6c4c 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -1121,16 +1121,17 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const Being *const dstBeing = actorManager->findBeing(msg.readInt32("being id")); + msg.readInt16("head direction"); + + const uint8_t dir = static_cast( + msg.readUInt8("player direction") & 0x0FU); + if (!dstBeing) { BLOCK_END("BeingHandler::processBeingChangeDirection") return; } - msg.readInt16("unused"); - - const uint8_t dir = static_cast( - msg.readUInt8("direction") & 0x0FU); dstBeing->setDirection(dir); if (localPlayer) localPlayer->imitateDirection(dstBeing, dir); -- cgit v1.2.3-70-g09d2