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/misc.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/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 65af62fd85..bc66970127 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -12,7 +12,6 @@ * <1> -/--/-- LRH Created */ - #include "AppHdr.h" #include "misc.h" #include "notes.h" @@ -484,7 +483,7 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) } if (!rot_count && !coag_count) - return false; // nothing to be done + return (false); // Nothing to be done. #ifdef DEBUG_BLOOD_POTIONS mprf(MSGCH_DIAGNOSTICS, "in maybe_coagulate_blood_potions_INV " @@ -512,7 +511,7 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) else ASSERT(blood.quantity == timer.size()); - return true; + return (true); } // Coagulated blood cannot coagulate any further... @@ -687,7 +686,8 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) ASSERT(timer.size() == blood.quantity); if (!knew_blood) mpr(blood.name(DESC_INVENTORY).c_str()); - return true; + + return (true); } o = mitm[o].link; } @@ -696,7 +696,7 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) // Create a new stack of potions. o = get_item_slot( 100 + random2(200) ); if (o == NON_ITEM) - return false; + return (false); // These values are common to all: {dlb} mitm[o].base_type = OBJ_POTIONS; @@ -739,7 +739,7 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) if (!knew_blood) mpr(blood.name(DESC_INVENTORY).c_str()); } - return true; + return (true); } // Mostly used for (q)uaff, (f)ire, and Evaporate. @@ -2304,8 +2304,8 @@ bool go_berserk(bool intentional) if (you.berserk_penalty != NO_BERSERK_PENALTY) you.berserk_penalty = 0; - return true; -} // end go_berserk() + return (true); +} bool mons_is_safe(const struct monsters *mon, bool want_move) { @@ -2339,7 +2339,7 @@ bool mons_is_safe(const struct monsters *mon, bool want_move) } #endif - return is_safe; + return (is_safe); } // Return all monsters in range (default: LOS) that the player is able to see @@ -2414,7 +2414,7 @@ bool i_feel_safe(bool announce, bool want_move, bool just_monsters, int range) // No monsters found. if (visible.empty()) - return true; + return (true); // Announce the presence of monsters (Eidolos). if (visible.size() == 1) |