summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-13 22:42:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-13 22:42:13 +0300
commit4466f50d7bb2d83d2b3cd86d85aff14486f84756 (patch)
tree116a29b5c4a4efc6789e812814156fbd240c6865 /src/net/eathena/beingrecv.cpp
parent027112ebe8e30a23e0478eae27861e95b12ccb69 (diff)
downloadmanaverse-4466f50d7bb2d83d2b3cd86d85aff14486f84756.tar.gz
manaverse-4466f50d7bb2d83d2b3cd86d85aff14486f84756.tar.bz2
manaverse-4466f50d7bb2d83d2b3cd86d85aff14486f84756.tar.xz
manaverse-4466f50d7bb2d83d2b3cd86d85aff14486f84756.zip
Add support for packet version 20150513.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 639ce37ab..2d66f5152 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -65,6 +65,7 @@
#include "debug.h"
+extern int packetVersion;
extern int serverVersion;
namespace EAthena
@@ -398,6 +399,8 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
+ if (packetVersion >= 20150513)
+ msg.readInt16("body2");
dstBeing->setStunMode(stunMode);
dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(
@@ -574,6 +577,8 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
+ if (packetVersion >= 20150513)
+ msg.readInt16("body2");
dstBeing->setStunMode(stunMode);
dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(
@@ -730,6 +735,8 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
+ if (packetVersion >= 20150513)
+ msg.readInt16("body2");
dstBeing->setStunMode(stunMode);
dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(