summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilecell.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-14 17:21:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-15 21:03:43 +0100
commit04ab49bde8bfadd87c7897b3319238b1da561812 (patch)
treeafd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/tilecell.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/tilecell.cc')
-rw-r--r--crawl-ref/source/tilecell.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tilecell.cc b/crawl-ref/source/tilecell.cc
index 4690faa3e3..0ce76a3e46 100644
--- a/crawl-ref/source/tilecell.cc
+++ b/crawl-ref/source/tilecell.cc
@@ -78,7 +78,7 @@ enum wave_type
static wave_type _get_wave_type(bool shallow)
{
- return (shallow ? WV_SHALLOW : WV_DEEP);
+ return shallow ? WV_SHALLOW : WV_DEEP;
}
static void _add_overlay(int tileidx, packed_cell *cell)
@@ -344,7 +344,7 @@ static bool _is_seen_shallow(coord_def gc)
{
const dungeon_feature_type feat = _safe_feat(gc);
- return (feat == DNGN_SHALLOW_WATER || feat == DNGN_MANGROVE);
+ return feat == DNGN_SHALLOW_WATER || feat == DNGN_MANGROVE;
}
static void _pack_default_waves(const coord_def &gc, packed_cell *cell)
@@ -423,8 +423,8 @@ static void _pack_default_waves(const coord_def &gc, packed_cell *cell)
static bool _is_seen_wall(coord_def gc)
{
const dungeon_feature_type feat = _safe_feat(gc);
- return (feat != DNGN_UNSEEN && feat <= DNGN_MAXWALL
- && feat != DNGN_MANGROVE);
+ return feat != DNGN_UNSEEN && feat <= DNGN_MAXWALL
+ && feat != DNGN_MANGROVE;
}
static void _pack_wall_shadows(const coord_def &gc, packed_cell *cell,