diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-06 13:29:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 13:29:42 +0300 |
commit | 83a6463a88b4b5eda003f55b419995c13476d917 (patch) | |
tree | 94df4a85319146e17ebe89ce82c6c3a0e1d9b138 /src/net/eathena/skillhandler.cpp | |
parent | 8a23a928d99d79b0d48961a225c3656ca42f34f0 (diff) | |
download | manaplus-83a6463a88b4b5eda003f55b419995c13476d917.tar.gz manaplus-83a6463a88b4b5eda003f55b419995c13476d917.tar.bz2 manaplus-83a6463a88b4b5eda003f55b419995c13476d917.tar.xz manaplus-83a6463a88b4b5eda003f55b419995c13476d917.zip |
In skills add support for reading mana cost from server.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index a66987f71..ef0b7d399 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -112,7 +112,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) const SkillType::SkillType inf = static_cast<SkillType::SkillType>( msg.readInt32("inf")); const int level = msg.readInt16("skill level"); - msg.readInt16("sp"); + const int sp = msg.readInt16("sp"); const int range = msg.readInt16("range"); const std::string name = msg.readString(24, "skill name"); const int up = msg.readUInt8("up flag"); @@ -122,8 +122,8 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) PlayerInfo::setSkillLevel(skillId, level); if (skillDialog) { - if (!skillDialog->updateSkill(skillId, range, up, inf)) - skillDialog->addSkill(skillId, name, level, range, up, inf); + if (!skillDialog->updateSkill(skillId, range, up, inf, sp)) + skillDialog->addSkill(skillId, name, level, range, up, inf, sp); } } if (updateSkill && skillDialog) |