summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 13:31:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 13:31:50 +0300
commit7687f55bfc4ac690748de0f65fd9f84f63be4b59 (patch)
tree584c7d4ca6e43d91cbe1d3d3f5ac191ca79378c7 /src/net/eathena/beinghandler.cpp
parentc33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3 (diff)
downloadplus-7687f55bfc4ac690748de0f65fd9f84f63be4b59.tar.gz
plus-7687f55bfc4ac690748de0f65fd9f84f63be4b59.tar.bz2
plus-7687f55bfc4ac690748de0f65fd9f84f63be4b59.tar.xz
plus-7687f55bfc4ac690748de0f65fd9f84f63be4b59.zip
eathena: add comments into processBeingChangeDirection.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp9
1 files changed, 5 insertions, 4 deletions
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<uint8_t>(
+ msg.readUInt8("player direction") & 0x0FU);
+
if (!dstBeing)
{
BLOCK_END("BeingHandler::processBeingChangeDirection")
return;
}
- msg.readInt16("unused");
-
- const uint8_t dir = static_cast<uint8_t>(
- msg.readUInt8("direction") & 0x0FU);
dstBeing->setDirection(dir);
if (localPlayer)
localPlayer->imitateDirection(dstBeing, dir);