diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-22 15:43:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-22 15:43:42 +0300 |
commit | c8c04113ea360bdf542393001e45eb1ea9f317d1 (patch) | |
tree | a77df61da3e3fdc1b4e66b292f5545cdd92dd224 /src/net/eathena/pethandler.cpp | |
parent | 752c00b3e14478ebfc243938ed0bfd3af0a05f58 (diff) | |
download | manaplus-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.gz manaplus-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.bz2 manaplus-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.xz manaplus-c8c04113ea360bdf542393001e45eb1ea9f317d1.zip |
eathena: add packet CMSG_PET_DIRECTION 0x0b12.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 6218da7a1..fbdb52d2a 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -322,8 +322,13 @@ void PetHandler::unequip() const outMsg.writeInt8(4, "action"); } -void PetHandler::setDirection(const BeingDirection::Type type A_UNUSED) const +void PetHandler::setDirection(const unsigned char type) const { + createOutPacket(CMSG_PET_DIRECTION); + outMsg.writeInt32(0, "pet id"); + outMsg.writeInt8(0, "head direction"); + outMsg.writeInt8(0, "unused"); + outMsg.writeInt8(type, "pet direction"); } void PetHandler::startAi(const bool start A_UNUSED) const |