diff options
author | worktycho <work.tycho@gmail.com> | 2015-05-05 23:08:40 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-05-05 23:08:40 +0200 |
commit | ee939cf8c86eb1d855bcf1c89038a709f350c84c (patch) | |
tree | 015da1c0d4fe80dc83653854d3a59a8f6a598832 /src/Tracer.h | |
parent | Merge pull request #1917 from Woazboat/CodeCleanup (diff) | |
download | cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.tar cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.tar.gz cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.tar.bz2 cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.tar.lz cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.tar.xz cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.tar.zst cuberite-ee939cf8c86eb1d855bcf1c89038a709f350c84c.zip |
Diffstat (limited to 'src/Tracer.h')
-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; |