diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-04 20:47:43 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-04 20:47:43 +0000 |
commit | 22e8777cd20d3bf9a9bce64901c4838f99fe9326 (patch) | |
tree | 70880152136ee9d5d0156c5df0555912ad73a449 /crawl-ref/source/directn.cc | |
parent | 013e0c0e9f3d7f35d9a9f8565622f4d7f3d17dee (diff) | |
download | crawl-ref-22e8777cd20d3bf9a9bce64901c4838f99fe9326.tar.gz crawl-ref-22e8777cd20d3bf9a9bce64901c4838f99fe9326.zip |
Don't pass number of columns to print_formatted_paragraph(), since it always
uses the width of the screen anyway. Have print_formatted_paragraph() respect
delay_message_clear. Fixes [2492045].
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8894 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 88655f4be4..b2c8247267 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -2853,9 +2853,8 @@ std::string _mon_enchantments_string(const monsters* mon) static void _describe_monster(const monsters *mon) { // First print type and equipment. - const int numcols = get_number_of_cols(); std::string text = get_monster_desc(mon) + "."; - print_formatted_paragraph(text, numcols); + print_formatted_paragraph(text); if (player_mesmerised_by(mon)) mpr("You are mesmerised by her song.", MSGCH_EXAMINE); @@ -2956,7 +2955,7 @@ static void _describe_monster(const monsters *mon) text = _mon_enchantments_string(mon); if (!text.empty()) - print_formatted_paragraph(text, numcols); + print_formatted_paragraph(text); } // This method is called in two cases: @@ -3122,7 +3121,7 @@ static void _describe_cell(const coord_def& where, bool in_range) #else msg = "(Press <w>v</w> for more information.)"; #endif - print_formatted_paragraph(msg, get_number_of_cols()); + print_formatted_paragraph(msg); } } @@ -3202,7 +3201,7 @@ static void _describe_cell(const coord_def& where, bool in_range) #else feature_desc += " (Press <w>v</w> for more information.)"; #endif - print_formatted_paragraph(feature_desc, get_number_of_cols()); + print_formatted_paragraph(feature_desc); } else { |