From b51dc9e9720a5cdb08d240da53948d34bb8a6c5a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 28 Mar 2009 19:59:33 +0000 Subject: Xom again: * tweak values for tension and amusement * Xom only laughs about "funny" deaths * gift_timeout rerolling after a bad act depends on its severity * replace the blink effect with position swapping git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9561 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index dfb4517cf3..80d45c124e 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -81,18 +81,18 @@ static void _append_value( std::string & description, int valu, bool plussed ) int count_desc_lines(const std::string _desc, const int width) { - std::string desc = get_linebreak_string(_desc, width); + std::string desc = get_linebreak_string(_desc, width); - int count = 0; - for (int i = 0, size = desc.size(); i < size; i++) - { - const char ch = desc[i]; + int count = 0; + for (int i = 0, size = desc.size(); i < size; i++) + { + const char ch = desc[i]; - if (ch == '\n' || ch == '$') - count++; - } + if (ch == '\n' || ch == '$') + count++; + } - return count; + return count; } //--------------------------------------------------------------- -- cgit v1.2.3-54-g00ecf