summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-22 15:43:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-22 15:43:42 +0300
commitc8c04113ea360bdf542393001e45eb1ea9f317d1 (patch)
treea77df61da3e3fdc1b4e66b292f5545cdd92dd224 /src/net/tmwa
parent752c00b3e14478ebfc243938ed0bfd3af0a05f58 (diff)
downloadplus-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.gz
plus-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.bz2
plus-c8c04113ea360bdf542393001e45eb1ea9f317d1.tar.xz
plus-c8c04113ea360bdf542393001e45eb1ea9f317d1.zip
eathena: add packet CMSG_PET_DIRECTION 0x0b12.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/pethandler.cpp2
-rw-r--r--src/net/tmwa/pethandler.h3
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;