summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.h
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-31 19:59:47 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-31 19:59:47 -0500
commit7081bee00e800676d88be8d2d9606f2ca51d3a65 (patch)
tree06dec15652b0921701f106911a757673d1c52e81 /crawl-ref/source/describe.h
parent1c13fa5dc9f792362b89894a9e796b15af8fdb4c (diff)
downloadcrawl-ref-7081bee00e800676d88be8d2d9606f2ca51d3a65.tar.gz
crawl-ref-7081bee00e800676d88be8d2d9606f2ca51d3a65.zip
Comment fixes.
Diffstat (limited to 'crawl-ref/source/describe.h')
-rw-r--r--crawl-ref/source/describe.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/describe.h b/crawl-ref/source/describe.h
index 5751678335..a75829376a 100644
--- a/crawl-ref/source/describe.h
+++ b/crawl-ref/source/describe.h
@@ -136,7 +136,7 @@ inline void process_description(T &proc, const describe_info &inf)
std::string desc;
- // How mnay lines is the title, we also seem to be adding 1 to
+ // How many lines is the title; we also seem to be adding 1 to
// start with.
int num_lines = count_desc_lines(inf.title, line_width) + 1;
@@ -147,18 +147,18 @@ inline void process_description(T &proc, const describe_info &inf)
+ (inf.footer.empty() ? 0 : 1);
const int quote_lines = count_desc_lines(inf.quote, line_width);
- // Maybe skip the body if body + title would be too many lines
- if(inf.title.empty())
+ // Maybe skip the body if body + title would be too many lines.
+ if (inf.title.empty())
{
desc = inf.body.str();
- // There is a default 1 line addition for some reason
+ // There is a default 1 line addition for some reason.
num_lines = body_lines + 1;
}
else if(body_lines + num_lines + 2 <= height)
{
desc = inf.title + "$$";
desc += inf.body.str();
- // Got 2 lines from the two $s that weren't counted yet
+ // Got 2 lines from the two $s that weren't counted yet.
num_lines += body_lines + 2;
}
else