From 24be5339e3c697c6faf7038a7cbeddae0cf92314 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 1 Jun 2008 23:32:17 +0000 Subject: Commit a few changes, mostly clean-up. * Modify tile_show_items setting in tutorial to (hopefully) show corpses again. * Change skill_exp_needed to use the level input rather than decreasing the passed in parameter, esp. when it was mostly called in the form skill_exp_needed(x + 1) anyway. I was trying to find out what went wrong in BR 1929156 but I can't work out the formula. :( git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5421 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/output.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 3fa6ba109f..216aad8293 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -941,12 +941,12 @@ void redraw_skill(const std::string &your_name, const std::string &class_name) const unsigned int WIDTH = crawl_view.hudsz.x; if (in_len > WIDTH) { - in_len -= 3; // what we're getting back from removing "the" + in_len -= 3; // What we're getting back from removing "the". const unsigned int name_len = your_name.length(); std::string trimmed_name = your_name; - // squeeze name if required, the "- 8" is to not squeeze too much + // Squeeze name if required, the "- 8" is to not squeeze too much. if (in_len > WIDTH && (name_len - 8) > (in_len - WIDTH)) { trimmed_name = -- cgit v1.2.3-54-g00ecf