summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-02 17:01:22 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-02 17:01:22 +0000
commite0ecd1fad5cd18dd866cb46d9b230e20cea53606 (patch)
tree6ab190687bae30e558edbf2eca8e60f4237a8bef /crawl-ref/source/command.cc
parent974b3abfbeb971f75382fe1e2c7837a4fc8e7d89 (diff)
downloadcrawl-ref-e0ecd1fad5cd18dd866cb46d9b230e20cea53606.tar.gz
crawl-ref-e0ecd1fad5cd18dd866cb46d9b230e20cea53606.zip
Clarify god descriptions a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7082 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index bb062ae723..1884ae2303 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -1256,9 +1256,7 @@ static bool _do_description(std::string key, std::string footer = "")
std::string prefix, suffix;
- int width = get_number_of_cols();
- if (width > 80)
- width = 80;
+ int width = std::min(80, get_number_of_cols());
god_type which_god = string_to_god(key.c_str());
if (which_god != GOD_NO_GOD)