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/randart.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/randart.cc')
-rw-r--r-- | crawl-ref/source/randart.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index ecbca074da..15396bfd7c 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -1286,7 +1286,7 @@ static bool _pick_db_name( const item_def &item ) case OBJ_JEWELLERY: return one_chance_in(5); default: - return false; + return (false); } } @@ -1634,7 +1634,7 @@ static bool _randart_is_redundant( const item_def &item, randart_properties_t &proprt ) { if (item.base_type != OBJ_JEWELLERY) - return false; + return (false); randart_prop_type provides = RAP_NUM_PROPERTIES; randart_prop_type provides2 = RAP_NUM_PROPERTIES; @@ -1723,25 +1723,25 @@ static bool _randart_is_redundant( const item_def &item, } if (provides == RAP_NUM_PROPERTIES) - return false; + return (false); if (proprt[provides] != 0) - return true; + return (true); if (provides2 == RAP_NUM_PROPERTIES) - return false; + return (false); if (proprt[provides2] != 0) - return true; + return (true); - return false; + return (false); } static bool _randart_is_conflicting( const item_def &item, randart_properties_t &proprt ) { if (item.base_type != OBJ_JEWELLERY) - return false; + return (false); randart_prop_type conflicts = RAP_NUM_PROPERTIES; @@ -1773,21 +1773,21 @@ static bool _randart_is_conflicting( const item_def &item, } if (conflicts == RAP_NUM_PROPERTIES) - return false; + return (false); if (proprt[conflicts] != 0) - return true; + return (true); - return false; + return (false); } bool randart_is_bad( const item_def &item, randart_properties_t &proprt ) { if (randart_wpn_num_props( proprt ) == 0) - return true; + return (true); - return ( _randart_is_redundant( item, proprt ) - || _randart_is_conflicting( item, proprt ) ); + return (_randart_is_redundant( item, proprt ) + || _randart_is_conflicting( item, proprt )); } bool randart_is_bad( const item_def &item ) |