summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewgeom.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/viewgeom.h
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/viewgeom.h')
-rw-r--r--crawl-ref/source/viewgeom.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/viewgeom.h b/crawl-ref/source/viewgeom.h
index 862246aeef..bd31dbd08a 100644
--- a/crawl-ref/source/viewgeom.h
+++ b/crawl-ref/source/viewgeom.h
@@ -87,12 +87,12 @@ public:
inline coord_def view2show(const coord_def &pos) const
{
- return (pos - vlos1);
+ return pos - vlos1;
}
inline coord_def show2view(const coord_def &pos) const
{
- return (pos + vlos1);
+ return pos + vlos1;
}
inline coord_def grid2show(const coord_def &pos) const
@@ -107,12 +107,12 @@ public:
inline coord_def screen2view(const coord_def& pos) const
{
- return (pos - viewp + termp);
+ return pos - viewp + termp;
}
inline coord_def view2screen(const coord_def& pos) const
{
- return (pos + viewp - termp);
+ return pos + viewp - termp;
}
inline coord_def screen2grid(const coord_def& pos) const
@@ -132,8 +132,8 @@ public:
bool in_los_bounds_g(const coord_def &c) const
{
- return (c.x >= glos1.x && c.x <= glos2.x
- && c.y >= glos1.y && c.y <= glos2.y);
+ return c.x >= glos1.x && c.x <= glos2.x
+ && c.y >= glos1.y && c.y <= glos2.y;
}
bool in_los_bounds_v(const coord_def &c) const
@@ -143,8 +143,8 @@ public:
bool in_viewport_v(const coord_def &c) const
{
- return (c.x > 0 && c.y > 0
- && c.x <= viewsz.x && c.y <= viewsz.y);
+ return c.x > 0 && c.y > 0
+ && c.x <= viewsz.x && c.y <= viewsz.y;
}
bool in_viewport_s(const coord_def &c) const