summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-22 16:41:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-22 16:41:18 +0300
commitd4deed0e785bdb8b6771d861c7ff6576a644767e (patch)
treebe4833ac70aa49630913d8dec54b5ef2e5833f50 /src/net/eathena/pethandler.cpp
parent9239957b3a21a1498323b7af2b2910bc75f72859 (diff)
downloadplus-d4deed0e785bdb8b6771d861c7ff6576a644767e.tar.gz
plus-d4deed0e785bdb8b6771d861c7ff6576a644767e.tar.bz2
plus-d4deed0e785bdb8b6771d861c7ff6576a644767e.tar.xz
plus-d4deed0e785bdb8b6771d861c7ff6576a644767e.zip
eathena: convert direction to server format before sending it to server.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index fbdb52d2a..2b1e501f7 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -328,7 +328,8 @@ void PetHandler::setDirection(const unsigned char type) const
outMsg.writeInt32(0, "pet id");
outMsg.writeInt8(0, "head direction");
outMsg.writeInt8(0, "unused");
- outMsg.writeInt8(type, "pet direction");
+ outMsg.writeInt8(MessageOut::toServerDirection(type),
+ "pet direction");
}
void PetHandler::startAi(const bool start A_UNUSED) const