summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-14 19:35:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-14 19:35:51 +0300
commit135e4e0bda8a0f07471501975665f6157758b779 (patch)
tree33f6a38c19dafa9671af6b1f55854e5ead6e7a66 /src/gui
parent8ea20d3e1f61bcfeccf6885e11cacddeb014fe0f (diff)
downloadmv-135e4e0bda8a0f07471501975665f6157758b779.tar.gz
mv-135e4e0bda8a0f07471501975665f6157758b779.tar.bz2
mv-135e4e0bda8a0f07471501975665f6157758b779.tar.xz
mv-135e4e0bda8a0f07471501975665f6157758b779.zip
Show skill level selection menu for skill with max level 1.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index e7e866491..1bfa0e3e1 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2373,13 +2373,10 @@ void PopupMenu::showSkillPopup(const SkillInfo *const info)
// TRANSLATORS: popup menu header
mBrowserBox->addRow(_("Skill"));
- if (info->level > 1)
- {
- mBrowserBox->addRow("/showskilllevels 'ITEMID'",
- // TRANSLATORS: popup menu item
- // TRANSLATORS: set skill level
- _("Skill level..."));
- }
+ mBrowserBox->addRow("/showskilllevels 'ITEMID'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: set skill level
+ _("Skill level..."));
mBrowserBox->addRow("/showskilltypes 'ITEMID'",
// TRANSLATORS: popup menu item
// TRANSLATORS: set skill cast type
@@ -2393,7 +2390,7 @@ void PopupMenu::showSkillPopup(const SkillInfo *const info)
void PopupMenu::showSkillLevelPopup(const SkillInfo *const info)
{
- if (!info || info->level <= 1)
+ if (!info)
return;
setMousePos();