diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-11-04 20:19:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-11-04 21:16:31 +0300 |
commit | c5a5274c86201b74325a8b84ab4543c73959c5d5 (patch) | |
tree | dfc3e7a8e584a2f42e1dcd70a8ce9837ac448549 /src/net/eathena/homunculushandler.cpp | |
parent | cb6572ebd60ecc525c5a236a26eefc673841f056 (diff) | |
download | plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.gz plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.bz2 plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.xz plus-c5a5274c86201b74325a8b84ab4543c73959c5d5.zip |
Dont send some packets with unsupported server versions.
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 9de5a29ea..1c3a724f5 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -30,6 +30,7 @@ #include "debug.h" extern Net::HomunculusHandler *homunculusHandler; +extern int packetVersion; namespace EAthena { @@ -80,6 +81,8 @@ void HomunculusHandler::attack(const BeingId targetId, void HomunculusHandler::feed() const { + if (packetVersion < 20050425) + return; createOutPacket(CMSG_HOMUNCULUS_MENU); outMsg.writeInt16(0, "type"); outMsg.writeInt8(1, "command"); // feed @@ -87,6 +90,8 @@ void HomunculusHandler::feed() const void HomunculusHandler::fire() const { + if (packetVersion < 20050425) + return; createOutPacket(CMSG_HOMUNCULUS_MENU); outMsg.writeInt16(0, "type"); outMsg.writeInt8(2, "command"); // delete |