summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 14:53:22 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 14:53:22 +0000
commit480d2ee923ab8077e03e10e07efe59d9306c5b81 (patch)
treee7ed7647acfacdb7e9b810fddaa740b85f7613a8 /crawl-ref/source
parent4ab0743df7118a918cf0522c06fe1d0dbf35ebe6 (diff)
downloadcrawl-ref-480d2ee923ab8077e03e10e07efe59d9306c5b81.tar.gz
crawl-ref-480d2ee923ab8077e03e10e07efe59d9306c5b81.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6295 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-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 94d79c23b4..56bf70c4cd 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2733,9 +2733,7 @@ static int _piety_level()
static void _detailed_god_description(god_type which_god)
{
clrscr();
- int width = get_number_of_cols();
- if (width > 80)
- width = 80;
+ int width = std::min(80, get_number_of_cols());
std::string godname = god_name(which_god, true);
int len = get_number_of_cols() - godname.length();