diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 13:12:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 13:12:58 +0300 |
commit | 72a83628abdde8cb5eb3e0973677266edf91997d (patch) | |
tree | a529e70f9a5552f5b45a47ff8132058a644f14e4 | |
parent | e7f2216326c3fba6a76d0ee3af1fba9a7782cec6 (diff) | |
download | manaplus-72a83628abdde8cb5eb3e0973677266edf91997d.tar.gz manaplus-72a83628abdde8cb5eb3e0973677266edf91997d.tar.bz2 manaplus-72a83628abdde8cb5eb3e0973677266edf91997d.tar.xz manaplus-72a83628abdde8cb5eb3e0973677266edf91997d.zip |
eathena: add comments to packet CMSG_PLAYER_CHANGE_DIR fields.
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 5 |
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, |