summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-21 13:01:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-21 13:01:00 +0300
commitba88670fe4b5f4606f80651f6433cc755ab6b6c1 (patch)
treeb0f8c94e63385df3fafaf8dfe70cc3d0357146a4 /src/net
parentebd21ed95b475d7a411bc6d341fb287b0c125509 (diff)
downloadplus-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.gz
plus-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.bz2
plus-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.xz
plus-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.zip
Fix updating skills window if some skills was removed.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/mercenaryhandler.cpp2
-rw-r--r--src/net/eathena/skillhandler.cpp8
-rw-r--r--src/net/tmwa/skillhandler.cpp8
3 files changed, 14 insertions, 4 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp
index 63c43f093..424bc337c 100644
--- a/src/net/eathena/mercenaryhandler.cpp
+++ b/src/net/eathena/mercenaryhandler.cpp
@@ -141,6 +141,8 @@ void MercenaryHandler::processMercenarySkills(Net::MessageIn &msg)
}
}
}
+ if (skillDialog)
+ skillDialog->update();
}
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index bcd90b6e0..a23700df4 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -151,8 +151,12 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
}
}
}
- if (updateSkill && skillDialog)
- skillDialog->playUpdateEffect(updateSkill);
+ if (skillDialog)
+ {
+ skillDialog->update();
+ if (updateSkill)
+ skillDialog->playUpdateEffect(updateSkill);
+ }
}
void SkillHandler::processSkillCoolDown(Net::MessageIn &msg)
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index bfedcf927..e6d6115eb 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -142,8 +142,12 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
}
}
}
- if (updateSkill && skillDialog)
- skillDialog->playUpdateEffect(updateSkill);
+ if (skillDialog)
+ {
+ skillDialog->update();
+ if (updateSkill)
+ skillDialog->playUpdateEffect(updateSkill);
+ }
}
} // namespace TmwAthena