summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-delve.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-23 10:57:35 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-24 00:30:34 +0200
commit1d578dda6fd52327bc9191d353834ce0f246dbcc (patch)
treec53b611c4f484acac407874943a8f744e86a9321 /crawl-ref/source/dgn-delve.cc
parent19c3e5f86f7e658cee713751d82137c95d57ba3f (diff)
downloadcrawl-ref-1d578dda6fd52327bc9191d353834ce0f246dbcc.tar.gz
crawl-ref-1d578dda6fd52327bc9191d353834ce0f246dbcc.zip
Drop a lot of superfluous parentheses.
These can be really confusing, especially if there are operators of different priorities, or multiple levels of parentheses, nearby.
Diffstat (limited to 'crawl-ref/source/dgn-delve.cc')
-rw-r--r--crawl-ref/source/dgn-delve.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dgn-delve.cc b/crawl-ref/source/dgn-delve.cc
index 3e80332ac1..a54b5df0d8 100644
--- a/crawl-ref/source/dgn-delve.cc
+++ b/crawl-ref/source/dgn-delve.cc
@@ -99,14 +99,14 @@ static bool _diggable(map_lines *map, coord_def c)
{
if (map)
return (*map)(c) == 'x';
- return (grd(c) == DNGN_ROCK_WALL) && !map_masked(c, MMT_VAULT);
+ return grd(c) == DNGN_ROCK_WALL && !map_masked(c, MMT_VAULT);
}
static bool _dug(map_lines *map, coord_def c)
{
if (map)
return strchr(traversable_glyphs, (*map)(c));
- return (grd(c) == DNGN_FLOOR);
+ return grd(c) == DNGN_FLOOR;
}
static void _digcell(map_lines *map, store_type& store, coord_def c)