summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los_def.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 13:22:39 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 14:00:11 +0200
commit68935e461e64eeb85ea44c616d1eab58975b8e20 (patch)
tree471804168af54b681856211f26fefb5091b34c34 /crawl-ref/source/los_def.cc
parent15d548d4ba1148531b8d755d4130962126bccb52 (diff)
downloadcrawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.tar.gz
crawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.zip
Some more return deparenthesization.
Diffstat (limited to 'crawl-ref/source/los_def.cc')
-rw-r--r--crawl-ref/source/los_def.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/los_def.cc b/crawl-ref/source/los_def.cc
index 4567c3b63e..15fdcdaa5d 100644
--- a/crawl-ref/source/los_def.cc
+++ b/crawl-ref/source/los_def.cc
@@ -31,7 +31,7 @@ los_def& los_def::operator=(const los_def& los)
init(los.center, *los.opc, los.bds);
show = los.show;
arena = los.arena;
- return (*this);
+ return *this;
}
void los_def::init(const coord_def &c, const opacity_func &o,
@@ -89,7 +89,7 @@ circle_def los_def::get_bounds() const
bool los_def::in_bounds(const coord_def& p) const
{
- return (bds.contains(p - center));
+ return bds.contains(p - center);
}
bool los_def::see_cell(const coord_def& p) const
@@ -112,7 +112,7 @@ circle_def los_glob::get_bounds() const
bool los_glob::in_bounds(const coord_def& p) const
{
- return (bds.contains(p - center));
+ return bds.contains(p - center);
}
bool los_glob::see_cell(const coord_def& p) const
@@ -125,5 +125,5 @@ los_glob& los_glob::operator=(const los_glob& los)
lt = los.lt;
center = los.center;
bds = los.bds;
- return (*this);
+ return *this;
}