summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-22 16:48:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-22 16:48:42 +0300
commit7d268331bf19c15b601251a4ff8947fa80e1cd48 (patch)
tree22a92e8a077471ff857e398426d0574d8da7feff /src/net/eathena
parentd4deed0e785bdb8b6771d861c7ff6576a644767e (diff)
downloadplus-7d268331bf19c15b601251a4ff8947fa80e1cd48.tar.gz
plus-7d268331bf19c15b601251a4ff8947fa80e1cd48.tar.bz2
plus-7d268331bf19c15b601251a4ff8947fa80e1cd48.tar.xz
plus-7d268331bf19c15b601251a4ff8947fa80e1cd48.zip
eathena: fix pet set direction for old server versions.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/pethandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 2b1e501f7..8daa34709 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -324,6 +324,8 @@ void PetHandler::unequip() const
void PetHandler::setDirection(const unsigned char type) const
{
+ if (!serverFeatures->haveMovePet())
+ return;
createOutPacket(CMSG_PET_DIRECTION);
outMsg.writeInt32(0, "pet id");
outMsg.writeInt8(0, "head direction");