summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.h
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/dungeon.h
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/dungeon.h')
-rw-r--r--crawl-ref/source/dungeon.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/dungeon.h b/crawl-ref/source/dungeon.h
index 8ff3d820cf..a3fdf97f97 100644
--- a/crawl-ref/source/dungeon.h
+++ b/crawl-ref/source/dungeon.h
@@ -93,7 +93,7 @@ class dgn_region
static bool between(int val, int low, int high)
{
- return (val >= low && val <= high);
+ return val >= low && val <= high;
}
bool contains(const coord_def &p) const
@@ -103,14 +103,14 @@ class dgn_region
bool contains(int xp, int yp) const
{
- return (xp >= pos.x && xp < pos.x + size.x
- && yp >= pos.y && yp < pos.y + size.y);
+ return xp >= pos.x && xp < pos.x + size.x
+ && yp >= pos.y && yp < pos.y + size.y;
}
bool fully_contains(const coord_def &p) const
{
- return (p.x > pos.x && p.x < pos.x + size.x - 1
- && p.y > pos.y && p.y < pos.y + size.y - 1);
+ return p.x > pos.x && p.x < pos.x + size.x - 1
+ && p.y > pos.y && p.y < pos.y + size.y - 1;
}
bool overlaps(const dgn_region &other) const;