summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-26 02:41:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-26 02:41:35 +0300
commit52fdc7544c117b058fb1321a24795d64fe3d3887 (patch)
tree903955c78f5911e09c8cb9a7cf00c720de842f4d /src/gui/windows/skilldialog.cpp
parent3a97fc3fd6f316882af762017443c410632d65eb (diff)
downloadmanaverse-52fdc7544c117b058fb1321a24795d64fe3d3887.tar.gz
manaverse-52fdc7544c117b058fb1321a24795d64fe3d3887.tar.bz2
manaverse-52fdc7544c117b058fb1321a24795d64fe3d3887.tar.xz
manaverse-52fdc7544c117b058fb1321a24795d64fe3d3887.zip
Read all fields from new quest packets and send to quests and skills window.
But for now not using this fields.
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index a6ede8245..6aa4c8afb 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -682,7 +682,11 @@ void SkillDialog::updateTabSelection()
}
}
-void SkillDialog::updateQuest(const int var, const int val)
+void SkillDialog::updateQuest(const int var,
+ const int val1,
+ const int val2 A_UNUSED,
+ const int val3 A_UNUSED,
+ const int time A_UNUSED)
{
const int id = var + SKILL_VAR_MIN_ID;
const SkillMap::const_iterator it = mSkills.find(id);
@@ -692,8 +696,8 @@ void SkillDialog::updateQuest(const int var, const int val)
SkillInfo *const info = it->second;
if (info)
{
- PlayerInfo::setSkillLevel(id, val);
- info->level = val;
+ PlayerInfo::setSkillLevel(id, val1);
+ info->level = val1;
info->update();
}
}