summaryrefslogtreecommitdiff
path: root/src/net/ea/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-06 13:29:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 13:29:42 +0300
commit83a6463a88b4b5eda003f55b419995c13476d917 (patch)
tree94df4a85319146e17ebe89ce82c6c3a0e1d9b138 /src/net/ea/skillhandler.cpp
parent8a23a928d99d79b0d48961a225c3656ca42f34f0 (diff)
downloadmanaplus-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/ea/skillhandler.cpp')
-rw-r--r--src/net/ea/skillhandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp
index 8a7f42d82..19f7d4d63 100644
--- a/src/net/ea/skillhandler.cpp
+++ b/src/net/ea/skillhandler.cpp
@@ -79,7 +79,7 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
{
const int skillId = msg.readInt16();
const int level = msg.readInt16();
- msg.readInt16(); // sp
+ const int sp = msg.readInt16();
const int range = msg.readInt16();
const int up = msg.readUInt8();
@@ -88,10 +88,11 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
PlayerInfo::setSkillLevel(skillId, level);
if (skillDialog)
{
- if (!skillDialog->updateSkill(skillId, range, up, SkillType::Unknown))
+ if (!skillDialog->updateSkill(skillId, range,
+ up, SkillType::Unknown, sp))
{
skillDialog->addSkill(skillId, "", level,
- range, up, SkillType::Unknown);
+ range, up, SkillType::Unknown, sp);
}
}
}