summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-09 19:47:22 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-09 19:47:22 +0100
commit1bf99b5fd26d142106d7a097900ebfe8a6279ad4 (patch)
tree44b238f317fd6863758a77ea640995e11f7e691a /src/Defines.h
parentFixed Mesannine twister to use UInt32 (diff)
downloadcuberite-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 '')
-rw-r--r--src/Defines.h3
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;
}