diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-09 19:47:22 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-09 19:47:22 +0100 |
commit | 1bf99b5fd26d142106d7a097900ebfe8a6279ad4 (patch) | |
tree | 44b238f317fd6863758a77ea640995e11f7e691a /src/Defines.h | |
parent | Fixed Mesannine twister to use UInt32 (diff) | |
download | cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.tar cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.tar.gz cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.tar.bz2 cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.tar.lz cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.tar.xz cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.tar.zst cuberite-1bf99b5fd26d142106d7a097900ebfe8a6279ad4.zip |
Diffstat (limited to 'src/Defines.h')
-rw-r--r-- | src/Defines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Defines.h b/src/Defines.h index fd240c91a..592b9434a 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -2,6 +2,7 @@ #pragma once #include "ChatColor.h" +#include <limits> @@ -469,7 +470,7 @@ inline void EulerToVector(double a_Pan, double a_Pitch, double & a_X, double & a inline void VectorToEuler(double a_X, double a_Y, double a_Z, double & a_Pan, double & a_Pitch) { - if (fabs(a_X) < std::numeric_limits::epsilon() ) + if (fabs(a_X) < std::numeric_limits<double>::epsilon()) { a_Pan = atan2(a_Z, a_X) * 180 / PI - 90; } |