summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skill_menu.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-02-07 03:14:24 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-02-07 03:14:24 +0100
commite3dd58888ab04797bcee0b43ab7ab4f0250be4e4 (patch)
treec62bf3c3fa40076fca42237b27178b2cae6d6a12 /crawl-ref/source/skill_menu.cc
parent0e0478f025368ac77a2b8feb6f8f80385cc9bd1f (diff)
downloadcrawl-ref-e3dd58888ab04797bcee0b43ab7ab4f0250be4e4.tar.gz
crawl-ref-e3dd58888ab04797bcee0b43ab7ab4f0250be4e4.zip
Fix mangled display of antitrained skills.
The minus sign was doubled, this caused line wrapping which resulted in misaligned display in tiles and the aptitude not being shown at all in console.
Diffstat (limited to 'crawl-ref/source/skill_menu.cc')
-rw-r--r--crawl-ref/source/skill_menu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/skill_menu.cc b/crawl-ref/source/skill_menu.cc
index 1c4e28ad94..914eca65d2 100644
--- a/crawl-ref/source/skill_menu.cc
+++ b/crawl-ref/source/skill_menu.cc
@@ -333,7 +333,7 @@ void SkillMenuEntry::set_aptitude()
text += "<magenta>";
text += antitrain_other(m_sk, show_all) ? "*" : " ";
if (is_antitrained(m_sk))
- text += make_stringf("-%d", ct_bonus - 4);
+ text += make_stringf("%d", ct_bonus - 4);
text += "</magenta>";
}