summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/geom2d.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-11-15 17:26:11 -0500
committerNeil Moore <neil@s-z.org>2013-11-15 17:26:11 -0500
commite7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch)
treeec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/geom2d.cc
parentb65bf4d5198c19095e3084a88983680df19ec5ee (diff)
downloadcrawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz
crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/geom2d.cc')
-rw-r--r--crawl-ref/source/geom2d.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/geom2d.cc b/crawl-ref/source/geom2d.cc
index b78f4328c2..9312e51c2c 100644
--- a/crawl-ref/source/geom2d.cc
+++ b/crawl-ref/source/geom2d.cc
@@ -46,7 +46,7 @@ double intersect(const ray &r, const line &l)
double lineseq::index(const vector &v) const
{
- return ((f(v) - offset) / dist);
+ return (f(v) - offset) / dist;
}
// Find the next intersection of r with a line in ls.
@@ -102,7 +102,7 @@ bool ray::to_next_cell(const grid &g)
vector reflect(const vector &v, const form &f)
{
vector normal = vector(f.a, f.b);
- return (v - 2 * f(v)/f(normal) * normal);
+ return v - 2 * f(v)/f(normal) * normal;
}
@@ -126,7 +126,7 @@ vector vector::operator+(const vector &v) const
vector vector::operator-() const
{
- return ((-1) * (*this));
+ return (-1) * (*this);
}
const vector& vector::operator-=(const vector &v)
@@ -136,7 +136,7 @@ const vector& vector::operator-=(const vector &v)
vector vector::operator-(const vector &v) const
{
- return (*this + (-v));
+ return *this + (-v);
}
vector operator*(double t, const vector &v)