summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-05-19 10:29:27 +0200
committerAlexander Harkness <me@bearbin.net>2015-05-19 10:29:27 +0200
commitd852209f8db9129a3d135a4f7034878d1438a57b (patch)
tree34b9c03c234ec2fc1f510ff25c5d778a9404615f /src/Mobs/Monster.cpp
parentImproved contributor (diff)
downloadcuberite-d852209f8db9129a3d135a4f7034878d1438a57b.tar
cuberite-d852209f8db9129a3d135a4f7034878d1438a57b.tar.gz
cuberite-d852209f8db9129a3d135a4f7034878d1438a57b.tar.bz2
cuberite-d852209f8db9129a3d135a4f7034878d1438a57b.tar.lz
cuberite-d852209f8db9129a3d135a4f7034878d1438a57b.tar.xz
cuberite-d852209f8db9129a3d135a4f7034878d1438a57b.tar.zst
cuberite-d852209f8db9129a3d135a4f7034878d1438a57b.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index a29d67d15..2b00f6959 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -519,7 +519,7 @@ void cMonster::SetPitchAndYawFromDestination()
double HeadRotation, HeadPitch;
Distance.Normalize();
VectorToEuler(Distance.x, Distance.y, Distance.z, HeadRotation, HeadPitch);
- if (abs(BodyRotation - HeadRotation) < 120)
+ if (std::abs(BodyRotation - HeadRotation) < 120)
{
SetHeadYaw(HeadRotation);
SetPitch(-HeadPitch);