summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-01 01:13:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-01 01:13:47 +0300
commitc14fb368c606d0ca4e0c73fb845b38e2dc84c958 (patch)
treeee597f2d3f3a164a08e7f038636b7a6953028a0b /src/net/eathena/beingrecv.cpp
parent9076e148535c6815c88a0c859f333333eb94a88c (diff)
downloadplus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.tar.gz
plus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.tar.bz2
plus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.tar.xz
plus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.zip
Add versions to packets where inside exists version checks.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 156c81d8f..a70c68bd8 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -65,7 +65,6 @@
#include "debug.h"
-extern int packetVersion;
extern int serverVersion;
namespace EAthena
@@ -411,7 +410,7 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
- if (packetVersion >= 20150513)
+ if (msg.getVersion() >= 20150513)
{
msg.readInt16("body2");
msg.readString(24, "name");
@@ -581,7 +580,7 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
- if (packetVersion >= 20150513)
+ if (msg.getVersion() >= 20150513)
{
msg.readInt16("body2");
msg.readString(24, "name");
@@ -731,7 +730,7 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
- if (packetVersion >= 20150513)
+ if (msg.getVersion() >= 20150513)
{
msg.readInt16("body2");
msg.readString(24, "name");