summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-19 22:30:24 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-19 22:30:24 -0600
commit6038ee3f4ea80085921f3ecf334884cbe98851bc (patch)
tree2c824cc0fbdcc08e1b060e0a941026ea9ad2ff56 /src
parent5141dc4a99b74358f2dd0f5f211c5069a630ce1b (diff)
downloadmana-6038ee3f4ea80085921f3ecf334884cbe98851bc.tar.gz
mana-6038ee3f4ea80085921f3ecf334884cbe98851bc.tar.bz2
mana-6038ee3f4ea80085921f3ecf334884cbe98851bc.tar.xz
mana-6038ee3f4ea80085921f3ecf334884cbe98851bc.zip
Use the same level display format in windows
Diffstat (limited to 'src')
-rw-r--r--src/gui/skilldialog.cpp10
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);