1
0

Manual merge of #2066

This commit is contained in:
Alexander Harkness 2015-05-19 09:29:27 +01:00
parent d1a0717a57
commit d852209f8d

View File

@ -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);