diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:09:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:09:33 +0300 |
commit | 6f1f0869c0976a4b033e2d16bf2f58dc252db19a (patch) | |
tree | 8fd5286ac840fef46a96dfab7862df806d9c8603 /src/net/eathena/beinghandler.cpp | |
parent | 74bdd9957e405979ca34828caa91cec55f4a932d (diff) | |
download | manaplus-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.tar.gz manaplus-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.tar.bz2 manaplus-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.tar.xz manaplus-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.zip |
Fix version for packet CMSG_REQUEST_RANKS.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 418876b0d..1ecb8895c 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -29,6 +29,7 @@ #include "debug.h" extern Net::BeingHandler *beingHandler; +extern int packetVersion; extern int serverVersion; namespace EAthena @@ -69,6 +70,9 @@ void BeingHandler::undress(Being *const being) const void BeingHandler::requestRanks(const RankT rank) const { + if (packetVersion < 20130605) + return; + createOutPacket(CMSG_REQUEST_RANKS); outMsg.writeInt16(CAST_S16(rank), "type"); } |