summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-09-22 14:33:41 +0200
committerAlexander Harkness <me@bearbin.net>2014-09-22 14:33:41 +0200
commitb9b45e82876caf51cf486b72c811aa49ef67b1ed (patch)
treee39037971290a1b9fa6343c0c8f846541096d435 /src/Entities/Minecart.cpp
parentQtBiomeVisualiser: Added the base for INI editting. (diff)
parentMade it compile with clang (diff)
downloadcuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.gz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.bz2
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.lz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.xz
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.tar.zst
cuberite-b9b45e82876caf51cf486b72c811aa49ef67b1ed.zip
Diffstat (limited to 'src/Entities/Minecart.cpp')
-rw-r--r--src/Entities/Minecart.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index 1501eea84..bc9e21d8e 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -876,7 +876,7 @@ bool cMinecart::TestEntityCollision(NIBBLETYPE a_RailMeta)
Vector3d Distance = MinecartCollisionCallback.GetCollidedEntityPosition() - Vector3d(GetPosX(), 0, GetPosZ());
// Prevent division by small numbers
- if (abs(Distance.z) < 0.001)
+ if (std::abs(Distance.z) < 0.001)
{
Distance.z = 0.001;
}
@@ -925,7 +925,7 @@ bool cMinecart::TestEntityCollision(NIBBLETYPE a_RailMeta)
Vector3d Distance = MinecartCollisionCallback.GetCollidedEntityPosition() - Vector3d(GetPosX(), 0, GetPosZ());
// Prevent division by small numbers
- if (abs(Distance.z) < 0.001)
+ if (std::abs(Distance.z) < 0.001)
{
Distance.z = 0.001;
}