summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-16 02:26:06 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-16 02:26:06 +0000
commit97c15a38617b933ae5efb6621a361e3fad48a091 (patch)
treea7c073fe54716705fe5f7ffb339fff3b4ce5cfac /crawl-ref/source/describe.cc
parentfef9f681531bf38dc5a969ba9d502418239f89c4 (diff)
downloadcrawl-ref-97c15a38617b933ae5efb6621a361e3fad48a091.tar.gz
crawl-ref-97c15a38617b933ae5efb6621a361e3fad48a091.zip
Add more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5871 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index a9ac2c0b7a..97dca6d3b5 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2696,9 +2696,7 @@ static void _detailed_god_description(god_type which_god)
formatted_string::parse_block(broken, false).display();
}
- int bottom_line = get_number_of_lines();
- if (bottom_line > 30)
- bottom_line = 30;
+ const int bottom_line = std::min(30, get_number_of_lines());
cgotoxy(1, bottom_line-1);
formatted_string::parse_string(