diff options
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r-- | src/gui/skilldialog.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index 15f93b9c..d5c5327f 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -327,14 +327,8 @@ void SkillEntry::update() setVisible(true); std::string skillLevel("Lvl: " + toString(baseLevel)); - if (effLevel < baseLevel) - { - skillLevel.append(" - " + toString(baseLevel - effLevel)); - } - else if (effLevel > baseLevel) - { - skillLevel.append(" + " + toString(effLevel - baseLevel)); - } + if (effLevel != baseLevel) + skillLevel += strprintf(" (%+d)", baseLevel - effLevel); mLevelLabel->setCaption(skillLevel); std::pair<int, int> exp = player_node->getExperience(mInfo->id); |