summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 21:09:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 21:09:33 +0300
commit6f1f0869c0976a4b033e2d16bf2f58dc252db19a (patch)
tree8fd5286ac840fef46a96dfab7862df806d9c8603 /src/net/eathena/beinghandler.cpp
parent74bdd9957e405979ca34828caa91cec55f4a932d (diff)
downloadmv-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.tar.gz
mv-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.tar.bz2
mv-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.tar.xz
mv-6f1f0869c0976a4b033e2d16bf2f58dc252db19a.zip
Fix version for packet CMSG_REQUEST_RANKS.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp4
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");
}