summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewmap.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/viewmap.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/viewmap.cc')
-rw-r--r--crawl-ref/source/viewmap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/viewmap.cc b/crawl-ref/source/viewmap.cc
index 21bd6ac29f..be4584fac1 100644
--- a/crawl-ref/source/viewmap.cc
+++ b/crawl-ref/source/viewmap.cc
@@ -123,12 +123,12 @@ static bool _is_explore_horizon(const coord_def& c)
#ifndef USE_TILE_LOCAL
static ucs_t _get_sightmap_char(dungeon_feature_type feat)
{
- return (get_feature_def(feat).symbol);
+ return get_feature_def(feat).symbol;
}
static ucs_t _get_magicmap_char(dungeon_feature_type feat)
{
- return (get_feature_def(feat).magic_symbol);
+ return get_feature_def(feat).magic_symbol;
}
#endif
@@ -150,7 +150,7 @@ bool is_feature(ucs_t feature, const coord_def& where)
switch (feature)
{
case 'E':
- return (travel_point_distance[where.x][where.y] == PD_EXCLUDED);
+ return travel_point_distance[where.x][where.y] == PD_EXCLUDED;
case 'F':
case 'W':
return is_waypoint(where);
@@ -534,7 +534,7 @@ static void _reset_travel_colours(vector<coord_def> &features, bool on_level)
// Sort glyphs within a group, for the feature list.
static bool _comp_glyphs(const cglyph_t& g1, const cglyph_t& g2)
{
- return (g1.ch < g2.ch || g1.ch == g2.ch && g1.col < g2.col);
+ return g1.ch < g2.ch || g1.ch == g2.ch && g1.col < g2.col;
}
#ifndef USE_TILE_LOCAL