From b9fdaf8a942ea2f79e48e3f735ba8916f3364e70 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 6 May 2018 19:07:34 +0200 Subject: Use clang-tidy to check more code conventions (#4214) * Create clang-tidy.sh * Add clang-tidy to circle.yml * Fixed some naming violations Fixes #4164 --- src/Tracer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Tracer.h') diff --git a/src/Tracer.h b/src/Tracer.h index 151869e3a..19901ee67 100644 --- a/src/Tracer.h +++ b/src/Tracer.h @@ -63,7 +63,7 @@ private: /** Determines which face on the block a collision occured, if it does occur Returns 0 if the block is air, water or no collision occured Return 1 through 6 for the following block faces, repectively: -x, -z, x, z, y, -y */ - int GetHitNormal(const Vector3f & start, const Vector3f & end, const Vector3i & a_BlockPos); + int GetHitNormal(const Vector3f &a_Start, const Vector3f & a_End, const Vector3i & a_BlockPos); /** Signum function */ int SigNum(float a_Num); @@ -72,12 +72,12 @@ private: static const std::array & m_NormalTable(void); - Vector3f dir; - Vector3f tDelta; - Vector3i pos; - Vector3i end1; - Vector3i step; - Vector3f tMax; + Vector3f m_Dir; + Vector3f m_tDelta; + Vector3i m_Pos; + Vector3i m_End1; + Vector3i m_Step; + Vector3f m_tMax; }; // tolua_end -- cgit v1.2.3