From c8c04113ea360bdf542393001e45eb1ea9f317d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Feb 2015 15:43:42 +0300 Subject: eathena: add packet CMSG_PET_DIRECTION 0x0b12. --- src/net/tmwa/pethandler.cpp | 2 +- src/net/tmwa/pethandler.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/net/tmwa') 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(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; -- cgit v1.2.3-60-g2f50