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/tmwa | |
parent | 752c00b3e14478ebfc243938ed0bfd3af0a05f58 (diff) | |
download | mv-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.gz mv-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.bz2 mv-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.xz mv-c8c04113ea360bdf542393001e45eb1ea9f317d1.zip |
eathena: add packet CMSG_PET_DIRECTION 0x0b12.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/pethandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/pethandler.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp index cd4cbfa4d..f759fdb0d 100644 --- a/src/net/tmwa/pethandler.cpp +++ b/src/net/tmwa/pethandler.cpp @@ -107,7 +107,7 @@ void PetHandler::unequip() const { } -void PetHandler::setDirection(const BeingDirection::Type type) const +void PetHandler::setDirection(const unsigned char type) const { chatHandler->talk(strprintf("\302\202\302d%dg%d", static_cast<int>(type), tick_time), GENERAL_CHANNEL); diff --git a/src/net/tmwa/pethandler.h b/src/net/tmwa/pethandler.h index 3237bf67f..3a744180a 100644 --- a/src/net/tmwa/pethandler.h +++ b/src/net/tmwa/pethandler.h @@ -63,8 +63,7 @@ class PetHandler final : public MessageHandler, public Net::PetHandler void unequip() const override final; - void setDirection(const BeingDirection::Type type) const - override final; + void setDirection(const unsigned char type) const override final; void startAi(const bool start) const override final; |