diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 10:39:39 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 10:39:39 +0000 |
commit | 61cae4a761c2f72cda44ae269c7007b37a0c14a7 (patch) | |
tree | fec8ec71ca7ca6eebd9d48881bc5ee3fe27d04c1 /crawl-ref/source/describe.cc | |
parent | d4acdf4a6a4b73607d58714a66efd372674adb56 (diff) | |
download | crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.tar.gz crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.zip |
Misc. minor cleanups. (Yes, a huge amount of them but still...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 90f5b2c6f4..f472fc12dc 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1592,7 +1592,7 @@ std::string get_item_description( const item_def &item, bool verbose, std::string db_desc = getLongDescription(db_name, is_artefact(item)); - if (db_desc == "") + if (db_desc.empty()) { if (item_type_known(item)) { @@ -2460,7 +2460,7 @@ static bool _print_god_abil_desc( int god, int numpower ) std::ostringstream buf; - if ( isupper(pmsg[0]) ) + if (isupper(pmsg[0])) buf << pmsg; // Complete sentence given. else buf << "You can " << pmsg << "."; @@ -2476,7 +2476,7 @@ static bool _print_god_abil_desc( int god, int numpower ) } cprintf( "%s\n", buf.str().c_str() ); - return true; + return (true); } static std::string _describe_favour_generic(god_type which_god) @@ -2544,8 +2544,9 @@ static std::string _religion_help( god_type god ) if (!player_under_penance() && you.piety > 160 && !you.num_gifts[god]) { - if (result != "") + if (!result.empty()) result += " "; + result += "You can pray at an altar to have your weapon " "blessed, especially a long sword."; } @@ -2580,8 +2581,9 @@ static std::string _religion_help( god_type god ) if (god_likes_butchery(god)) { - if (result != "") + if (!result.empty()) result += " "; + result += "You can sacrifice corpses by dissecting" " them during prayer."; } |