diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/coord-circle.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/coord-circle.cc')
-rw-r--r-- | crawl-ref/source/coord-circle.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/coord-circle.cc b/crawl-ref/source/coord-circle.cc index eb15b4bdd2..7efa3ebf22 100644 --- a/crawl-ref/source/coord-circle.cc +++ b/crawl-ref/source/coord-circle.cc @@ -18,7 +18,7 @@ rect_def rect_def::intersect(const rect_def& other) const res.min.y = std::max(min.y, other.min.y); res.max.x = std::min(max.x, other.max.x); res.max.y = std::min(max.y, other.max.y); - return (res); + return res; } rectangle_iterator rect_def::iter() const @@ -91,12 +91,12 @@ void circle_def::init_bbox() const rect_def& circle_def::get_bbox() const { - return (bbox); + return bbox; } const coord_def& circle_def::get_center() const { - return (origin); + return origin; } circle_iterator circle_def::iter() const @@ -107,7 +107,7 @@ circle_iterator circle_def::iter() const bool circle_def::contains(const coord_def &p) const { if (!bbox.contains(p)) - return (false); + return false; switch (shape) { case SH_SQUARE: @@ -118,6 +118,6 @@ bool circle_def::contains(const coord_def &p) const return ((p - origin).abs() <= r_sq); } default: - return (false); + return false; } } |