From d4deed0e785bdb8b6771d861c7ff6576a644767e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Feb 2015 16:41:18 +0300 Subject: eathena: convert direction to server format before sending it to server. --- src/net/eathena/playerhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/playerhandler.cpp') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index b5bc87dcf..1fa2d0329 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -209,7 +209,8 @@ void PlayerHandler::setDirection(const unsigned char direction) const createOutPacket(CMSG_PLAYER_CHANGE_DIR); outMsg.writeInt8(0, "head direction"); outMsg.writeInt8(0, "unused"); - outMsg.writeInt8(direction, "player direction"); + outMsg.writeInt8(MessageOut::toServerDirection(direction), + "player direction"); } void PlayerHandler::setDestination(const int x, const int y, -- cgit v1.2.3-60-g2f50