summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.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/command.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/command.cc')
-rw-r--r--crawl-ref/source/command.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 83ebe47426..2f348e68e3 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -1146,9 +1146,8 @@ static bool _do_description(std::string key, std::string footer = "")
num_lines++;
// So the footer doesn't get lonely on large displays. :)
- 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 - num_lines);
cprintf(footer.c_str());