From ca6ef58b1ee8521e4b940ee4883dee714960e413 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Fri, 5 Feb 2016 23:45:45 +0200 Subject: Bulk clearing of whitespace --- src/Tracer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Tracer.cpp') diff --git a/src/Tracer.cpp b/src/Tracer.cpp index 17f1bdfbc..913f25e01 100644 --- a/src/Tracer.cpp +++ b/src/Tracer.cpp @@ -166,11 +166,11 @@ bool cTracer::Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int LOGD("%s: Start Y is outside the world (%.2f), not tracing.", __FUNCTION__, a_Start.y); return false; } - + SetValues(a_Start, a_Direction); Vector3f End = a_Start + (dir * static_cast(a_Distance)); - + if (End.y < 0) { float dist = -a_Start.y / dir.y; // No division by 0 possible @@ -181,7 +181,7 @@ bool cTracer::Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int end1.x = static_cast(floorf(End.x)); end1.y = static_cast(floorf(End.y)); end1.z = static_cast(floorf(End.z)); - + // check if first is occupied if (pos.Equals(end1)) { @@ -250,7 +250,7 @@ bool cTracer::Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int { return false; } - + if ((pos.y < 0) || (pos.y >= cChunkDef::Height)) { return false; @@ -328,7 +328,7 @@ int cTracer::intersect3D_SegmentPlane(const Vector3f & a_Origin, const Vector3f } return 0; // no intersection } - + // they are not parallel // compute intersect param float sI = N / D; -- cgit v1.2.3