diff options
author | Alexander Harkness <me@bearbin.net> | 2015-05-19 10:29:27 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-05-19 10:29:27 +0200 |
commit | d852209f8db9129a3d135a4f7034878d1438a57b (patch) | |
tree | 34b9c03c234ec2fc1f510ff25c5d778a9404615f /src/Mobs/Monster.cpp | |
parent | Improved contributor (diff) | |
download | cuberite-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 'src/Mobs/Monster.cpp')
-rw-r--r-- | src/Mobs/Monster.cpp | 2 |
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); |