summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-04 14:41:48 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-04 14:41:48 +0000
commitce3948ab25120e7caf3d69d14f5eff0c4f11ff11 (patch)
tree3501089438d6dd57caebf9176232b3065de93970 /crawl-ref/source/describe.cc
parentd39d0c75a346c3879d20cdb3ea863abff8bae815 (diff)
downloadcrawl-ref-ce3948ab25120e7caf3d69d14f5eff0c4f11ff11.tar.gz
crawl-ref-ce3948ab25120e7caf3d69d14f5eff0c4f11ff11.zip
2036429: better spacing on ^ screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6772 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc18
1 files changed, 6 insertions, 12 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 2b8f4c1e41..ffdffd68c9 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3166,18 +3166,12 @@ void describe_god( god_type which_god, bool give_title )
// Only give this additional information for worshippers.
if (which_god == you.religion)
{
- if (you.religion == GOD_ZIN
- || you.religion == GOD_SHINING_ONE
- || you.religion == GOD_ELYVILON)
- {
- cgotoxy(1, bottom_line - 1, GOTO_CRT);
- }
- else
- cgotoxy(1, bottom_line - 2, GOTO_CRT);
-
- textcolor(LIGHTGREY);
- cprintf(get_linebreak_string(_religion_help(which_god),
- numcols).c_str());
+ std::string extra = get_linebreak_string(_religion_help(which_god),
+ numcols).c_str();
+ cgotoxy(1, bottom_line - std::count(extra.begin(), extra.end(), '\n')-1,
+ GOTO_CRT);
+ textcolor(LIGHTGREY);
+ cprintf( "%s", extra.c_str() );
}
cgotoxy(1, bottom_line);