From 22e8777cd20d3bf9a9bce64901c4838f99fe9326 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 4 Feb 2009 20:47:43 +0000 Subject: 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 --- crawl-ref/source/directn.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/directn.cc') 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 v 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 v for more information.)"; #endif - print_formatted_paragraph(feature_desc, get_number_of_cols()); + print_formatted_paragraph(feature_desc); } else { -- cgit v1.2.3-54-g00ecf