From 2359fc67055cadd369f6c52805778531efd47ecd Mon Sep 17 00:00:00 2001 From: Woazboat Date: Wed, 29 Apr 2015 00:27:15 +0200 Subject: [PATCH] Fix HasNonZeroLength name now 100% more cs compliant --- src/Tracer.cpp | 4 ++-- src/Vector3.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tracer.cpp b/src/Tracer.cpp index ad662aca7..097726278 100644 --- a/src/Tracer.cpp +++ b/src/Tracer.cpp @@ -64,7 +64,7 @@ int cTracer::SigNum(float a_Num) void cTracer::SetValues(const Vector3f & a_Start, const Vector3f & a_Direction) { // Since this method should only be called by Trace, zero length vectors should already have been taken care of - ASSERT(a_Direction.hasNonZeroLength()); + ASSERT(a_Direction.HasNonZeroLength()); // calculate the direction of the ray (linear algebra) dir = a_Direction; @@ -148,7 +148,7 @@ void cTracer::SetValues(const Vector3f & a_Start, const Vector3f & a_Direction) bool cTracer::Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance, bool a_LineOfSight) { - if(!a_Direction.hasNonZeroLength()) + if(!a_Direction.HasNonZeroLength()) { return false; } diff --git a/src/Vector3.h b/src/Vector3.h index ede6cc851..6164721da 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -78,7 +78,7 @@ public: ); } - inline bool hasNonZeroLength(void) const + inline bool HasNonZeroLength(void) const { return ((x != 0) || (y != 0) || (z != 0)); }