diff options
author | worktycho <work.tycho@gmail.com> | 2015-05-05 23:08:49 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-05-05 23:08:49 +0200 |
commit | 18a268a961d1a9d93fda2e4c0b18f9296f7dd768 (patch) | |
tree | 015da1c0d4fe80dc83653854d3a59a8f6a598832 /src/Tracer.h | |
parent | Merge pull request #1917 from Woazboat/CodeCleanup (diff) | |
parent | Revert "Small code cleanup" (diff) | |
download | cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.tar cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.tar.gz cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.tar.bz2 cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.tar.lz cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.tar.xz cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.tar.zst cuberite-18a268a961d1a9d93fda2e4c0b18f9296f7dd768.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Tracer.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Tracer.h b/src/Tracer.h index ec23b340e..ec87d449e 100644 --- a/src/Tracer.h +++ b/src/Tracer.h @@ -3,8 +3,6 @@ #include "Vector3.h" -#include <array> - @@ -63,11 +61,10 @@ private: /// 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); - /// Signum function - int SigNum( float a_Num); + float SigNum( float a_Num); cWorld* m_World; - static const std::array<const Vector3f, 6> m_NormalTable; + Vector3f m_NormalTable[6]; Vector3f dir; Vector3f tDelta; |