diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-01 23:32:17 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-01 23:32:17 +0000 |
commit | 24be5339e3c697c6faf7038a7cbeddae0cf92314 (patch) | |
tree | 2c6c70307ecf9b9996737717fd4bfd852b6057e3 /crawl-ref/source/output.cc | |
parent | a6935bcfb6948bdb6d366cfecda141093b8163f3 (diff) | |
download | crawl-ref-24be5339e3c697c6faf7038a7cbeddae0cf92314.tar.gz crawl-ref-24be5339e3c697c6faf7038a7cbeddae0cf92314.zip |
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
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 = |