summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
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(