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 | |
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')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 4 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 3 |
2 files changed, 6 insertions, 1 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"); } diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index fd44935c9..d5b40e2e5 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -181,7 +181,6 @@ packet(CMSG_SOLVE_CHAR_NAME, 0x0193, 6, clif->pSolveCharName); packet(CMSG_IGNORE_ALL, 0x00d0, 3, clif->pPMIgnoreAll); packet(CMSG_IGNORE_NICK, 0x00cf, 27, clif->pPMIgnore); packet(CMSG_REQUEST_IGNORE_LIST, 0x00d3, 2, clif->pPMIgnoreList); -packet(CMSG_REQUEST_RANKS, 0x097c, 4, clif->pRanklist); packet(CMSG_SET_SHORTCUTS, 0x02ba, 11, clif->pHotkey); packet(CMSG_NPC_COMPLETE_PROGRESS_BAR, 0x02f1, 2, clif->pProgressbar); packet(CMSG_NPC_PRODUCE_MIX, 0x018e, 10, clif->pProduceMix); @@ -291,6 +290,7 @@ packet(CMSG_BANK_WITHDRAW, 0x0000, 0, nullptr); packet(CMSG_BANK_CHECK, 0x0000, 0, nullptr); packet(CMSG_BANK_OPEN, 0x0000, 0, nullptr); packet(CMSG_BANK_CLOSE, 0x0000, 0, nullptr); +packet(CMSG_REQUEST_RANKS, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -841,6 +841,7 @@ if (packetVersion >= 20130605) packet(CMSG_HOMUNCULUS_MENU, 0x0361, 5, clif->pHomMenu); packet(CMSG_BUYINGSTORE_CREATE, 0x0815, -1, clif->pReqOpenBuyingStore); packet(CMSG_SKILL_USE_BEING, 0x083c, 10, clif->pUseSkillToId); + packet(CMSG_REQUEST_RANKS, 0x097c, 4, clif->pRanklist); } // 20130612 |