diff options
author | HaoTNN <haotnn@gmail.com> | 2015-05-19 23:22:27 +0200 |
---|---|---|
committer | HaoTNN <haotnn@gmail.com> | 2015-05-19 23:22:27 +0200 |
commit | ac1bfd967153cee45b1ffc93655fbb4833faa531 (patch) | |
tree | 7ca3aef2a46a272ae815912af66dea0afe06e63b /src/Mobs/Monster.cpp | |
parent | Fixes lit furnace issue in #2051 (diff) | |
parent | Merge pull request #2076 from mc-server/Cert-disable (diff) | |
download | cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.tar cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.tar.gz cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.tar.bz2 cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.tar.lz cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.tar.xz cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.tar.zst cuberite-ac1bfd967153cee45b1ffc93655fbb4833faa531.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); |