summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-06 19:53:31 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-06 19:53:31 +0300
commitbb4d09f845aba5eabd3bce15feb21033f4883d62 (patch)
tree0a8d8325287308be6a3b694f54f2564bb1740d90 /src
parentd4695c9db554a31921fc7bea0af49d485277ad00 (diff)
downloadplus-bb4d09f845aba5eabd3bce15feb21033f4883d62.tar.gz
plus-bb4d09f845aba5eabd3bce15feb21033f4883d62.tar.bz2
plus-bb4d09f845aba5eabd3bce15feb21033f4883d62.tar.xz
plus-bb4d09f845aba5eabd3bce15feb21033f4883d62.zip
Drop support for plugin version 15.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/beingrecv.cpp60
-rw-r--r--src/net/eathena/loginrecv.cpp2
2 files changed, 13 insertions, 49 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 20342f853..ccf00cd90 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -584,25 +584,13 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
msg.readInt8("is boss");
}
- if (serverVersion == 0 ||
- serverVersion >= 16)
+ if (msg.getVersion() >= 20150513)
{
- if (msg.getVersion() >= 20150513)
- {
- msg.readInt16("body2");
- }
- if (msg.getVersion() >= 20131223)
- {
- msg.readString(24, "name");
- }
+ msg.readInt16("body2");
}
- else
+ if (msg.getVersion() >= 20131223)
{
- if (msg.getVersion() >= 20150513)
- {
- msg.readInt16("body2");
- msg.readString(24, "name");
- }
+ msg.readString(24, "name");
}
dstBeing->setStatusEffectOpitons(option,
@@ -790,25 +778,13 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
}
- if (serverVersion == 0 ||
- serverVersion >= 16)
+ if (msg.getVersion() >= 20150513)
{
- if (msg.getVersion() >= 20150513)
- {
- msg.readInt16("body2");
- }
- if (msg.getVersion() >= 20131223)
- {
- msg.readString(24, "name");
- }
+ msg.readInt16("body2");
}
- else
+ if (msg.getVersion() >= 20131223)
{
- if (msg.getVersion() >= 20150513)
- {
- msg.readInt16("body2");
- msg.readString(24, "name");
- }
+ msg.readString(24, "name");
}
dstBeing->setStatusEffectOpitons(option,
@@ -974,25 +950,13 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
}
- if (serverVersion == 0 ||
- serverVersion >= 16)
+ if (msg.getVersion() >= 20150513)
{
- if (msg.getVersion() >= 20150513)
- {
- msg.readInt16("body2");
- }
- if (msg.getVersion() >= 20131223)
- {
- msg.readString(24, "name");
- }
+ msg.readInt16("body2");
}
- else
+ if (msg.getVersion() >= 20131223)
{
- if (msg.getVersion() >= 20150513)
- {
- msg.readInt16("body2");
- msg.readString(24, "name");
- }
+ msg.readString(24, "name");
}
dstBeing->setStatusEffectOpitons(option,
diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp
index 2f6defc25..213051c28 100644
--- a/src/net/eathena/loginrecv.cpp
+++ b/src/net/eathena/loginrecv.cpp
@@ -172,7 +172,7 @@ void LoginRecv::processServerVersion(Net::MessageIn &msg)
logger->log("autofix Hercules packet version to: %d",
packetVersion);
}
- if (serverVersion >= 16 && len >= 18)
+ if (len >= 18)
{
evolPacketOffset = msg.readInt16("evol packet offset");
}