summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 13:12:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 13:12:58 +0300
commit72a83628abdde8cb5eb3e0973677266edf91997d (patch)
treea529e70f9a5552f5b45a47ff8132058a644f14e4 /src
parente7f2216326c3fba6a76d0ee3af1fba9a7782cec6 (diff)
downloadmanaverse-72a83628abdde8cb5eb3e0973677266edf91997d.tar.gz
manaverse-72a83628abdde8cb5eb3e0973677266edf91997d.tar.bz2
manaverse-72a83628abdde8cb5eb3e0973677266edf91997d.tar.xz
manaverse-72a83628abdde8cb5eb3e0973677266edf91997d.zip
eathena: add comments to packet CMSG_PLAYER_CHANGE_DIR fields.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/playerhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index d6ae04585..39ecaf5ce 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -179,8 +179,9 @@ void PlayerHandler::pickUp(const FloorItem *const floorItem) const
void PlayerHandler::setDirection(const unsigned char direction) const
{
MessageOut outMsg(CMSG_PLAYER_CHANGE_DIR);
- outMsg.writeInt16(0);
- outMsg.writeInt8(direction);
+ outMsg.writeInt8(0, "head direction");
+ outMsg.writeInt8(0, "unused");
+ outMsg.writeInt8(direction, "player direction");
}
void PlayerHandler::setDestination(const int x, const int y,