diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-05 12:08:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 57978a09e9d32a44a95823716d790065d73f977a (patch) | |
tree | 0d89ebeebb91b86fd2c16fa9066b5a08fd7e4f73 /src/net/eathena | |
parent | 3b1d570f626786d141d99a7923669e82e0c125ca (diff) | |
download | manaplus-57978a09e9d32a44a95823716d790065d73f977a.tar.gz manaplus-57978a09e9d32a44a95823716d790065d73f977a.tar.bz2 manaplus-57978a09e9d32a44a95823716d790065d73f977a.tar.xz manaplus-57978a09e9d32a44a95823716d790065d73f977a.zip |
Add skill type reading from server
Diffstat (limited to 'src/net/eathena')
-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 d9aedce2c..09580b8fc 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -107,7 +107,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) for (int k = 0; k < skillCount; k++) { const int skillId = msg.readInt16("skill id"); - msg.readInt32("inf"); // what is it? + const int inf = msg.readInt32("inf"); const int level = msg.readInt16("skill level"); msg.readInt16("sp"); const int range = msg.readInt16("range"); @@ -119,8 +119,8 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) PlayerInfo::setSkillLevel(skillId, level); if (skillDialog) { - if (!skillDialog->updateSkill(skillId, range, up)) - skillDialog->addSkill(skillId, name, level, range, up); + if (!skillDialog->updateSkill(skillId, range, up, inf)) + skillDialog->addSkill(skillId, name, level, range, up, inf); } } if (updateSkill && skillDialog) |