diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-14 17:21:58 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-15 21:03:43 +0100 |
commit | 04ab49bde8bfadd87c7897b3319238b1da561812 (patch) | |
tree | afd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/abyss.cc | |
parent | 51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff) | |
download | crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip |
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r-- | crawl-ref/source/abyss.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc index 020077374f..1744e12fdd 100644 --- a/crawl-ref/source/abyss.cc +++ b/crawl-ref/source/abyss.cc @@ -278,7 +278,7 @@ static bool _abyss_place_rune(const map_bitmask &abyss_genlevel_mask, item_colour(mitm[thing_created]); } move_item_to_grid(&thing_created, chosen_spot); - return (thing_created != NON_ITEM); + return thing_created != NON_ITEM; } return false; @@ -577,7 +577,7 @@ static bool _pushy_feature(dungeon_feature_type feat) // Perhaps this should instead be merged with (the complement of) // _item_safe_square() in terrain.cc. Unlike this function, that // one treats traps as unsafe, but closed doors as safe. - return (feat_is_solid(feat) || feat == DNGN_LAVA); + return feat_is_solid(feat) || feat == DNGN_LAVA; } static void _push_items() @@ -963,7 +963,7 @@ void save_abyss_uniques() static bool _in_wastes(const coord_def &p) { - return (p.x > 0 && p.x < 0x7FFFFFF && p.y > 0 && p.y < 0x7FFFFFF); + return p.x > 0 && p.x < 0x7FFFFFF && p.y > 0 && p.y < 0x7FFFFFF; } // XXX: This does two things: picks a random level for monster generation, @@ -1071,7 +1071,7 @@ static cloud_type _cloud_from_feat(const dungeon_feature_type &ft) case DNGN_SLIMY_WALL: case DNGN_STONE_WALL: case DNGN_PERMAROCK_WALL: - return (coinflip() ? CLOUD_BLUE_SMOKE : CLOUD_PURPLE_SMOKE); + return coinflip() ? CLOUD_BLUE_SMOKE : CLOUD_PURPLE_SMOKE; case DNGN_CLEAR_ROCK_WALL: case DNGN_CLEAR_STONE_WALL: case DNGN_CLEAR_PERMAROCK_WALL: @@ -1084,7 +1084,7 @@ static cloud_type _cloud_from_feat(const dungeon_feature_type &ft) case DNGN_DEEP_WATER: case DNGN_SHALLOW_WATER: case DNGN_FOUNTAIN_BLUE: - return (one_chance_in(5) ? CLOUD_RAIN : CLOUD_BLUE_SMOKE); + return one_chance_in(5) ? CLOUD_RAIN : CLOUD_BLUE_SMOKE; case DNGN_FOUNTAIN_SPARKLING: return CLOUD_RAIN; default: |