From 89c117a64240de90c19004c846edf7c524f6484d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Sep 2014 11:24:55 +0300 Subject: For unknown skills use if possible server side skill name. --- src/net/ea/skillhandler.cpp | 2 +- src/net/eathena/skillhandler.cpp | 4 ++-- src/net/tmwa/skillhandler.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp index ecf98952a..5197cff30 100644 --- a/src/net/ea/skillhandler.cpp +++ b/src/net/ea/skillhandler.cpp @@ -89,7 +89,7 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg) if (skillDialog) { if (!skillDialog->updateSkill(skillId, range, up)) - skillDialog->addSkill(skillId, level, range, up); + skillDialog->addSkill(skillId, "", level, range, up); } } diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index afb766ac8..d9aedce2c 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -111,7 +111,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) const int level = msg.readInt16("skill level"); msg.readInt16("sp"); const int range = msg.readInt16("range"); - msg.readString(24, "skill name"); + const std::string name = msg.readString(24, "skill name"); const int up = msg.readUInt8("up flag"); const int oldLevel = PlayerInfo::getSkillLevel(skillId); if (oldLevel && oldLevel != level) @@ -120,7 +120,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) if (skillDialog) { if (!skillDialog->updateSkill(skillId, range, up)) - skillDialog->addSkill(skillId, level, range, up); + skillDialog->addSkill(skillId, name, level, range, up); } } if (updateSkill && skillDialog) diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index 33e06cd3c..b4a39d4e7 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -123,7 +123,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) if (skillDialog) { if (!skillDialog->updateSkill(skillId, range, up)) - skillDialog->addSkill(skillId, level, range, up); + skillDialog->addSkill(skillId, "", level, range, up); } } if (updateSkill && skillDialog) -- cgit v1.2.3-70-g09d2