diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-06 19:40:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-06 19:40:23 +0300 |
commit | d4695c9db554a31921fc7bea0af49d485277ad00 (patch) | |
tree | 9d24b929bae3700ffacfc593fbbe4b3267e172df | |
parent | 2fcdc62cf90aa9d5adae28d5b6d6b1b676ab8a97 (diff) | |
download | manaplus-d4695c9db554a31921fc7bea0af49d485277ad00.tar.gz manaplus-d4695c9db554a31921fc7bea0af49d485277ad00.tar.bz2 manaplus-d4695c9db554a31921fc7bea0af49d485277ad00.tar.xz manaplus-d4695c9db554a31921fc7bea0af49d485277ad00.zip |
Drop support for plugin version 14.
-rw-r--r-- | src/net/eathena/skillrecv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp index 609f71250..6307cb3ab 100644 --- a/src/net/eathena/skillrecv.cpp +++ b/src/net/eathena/skillrecv.cpp @@ -68,7 +68,7 @@ namespace EAthena void SkillRecv::processPlayerSkills(Net::MessageIn &msg) { msg.readInt16("len"); - const int sz = (serverVersion >= 15) ? 41 : 37; + const int sz = (serverVersion > 0) ? 41 : 37; const int skillCount = (msg.getLength() - 4) / sz; int updateSkill = 0; @@ -79,7 +79,7 @@ void SkillRecv::processPlayerSkills(Net::MessageIn &msg) const int skillId = msg.readInt16("skill id"); const SkillType::SkillType inf = static_cast<SkillType::SkillType>( msg.readInt32("inf")); - if (serverVersion >= 15) + if (serverVersion > 0) msg.readInt32("inf2"); const int level = msg.readInt16("skill level"); const int sp = msg.readInt16("sp"); |