From 72a83628abdde8cb5eb3e0973677266edf91997d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 13:12:58 +0300 Subject: eathena: add comments to packet CMSG_PLAYER_CHANGE_DIR fields. --- src/net/eathena/playerhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/playerhandler.cpp') 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, -- cgit v1.2.3-70-g09d2