Fixed: A_FaceMovementDirection would not adjust the angle if it was actually under the limit.

This commit is contained in:
Major Cooke 2016-08-18 15:05:18 -05:00 committed by Christoph Oelckers
parent df4a8e38c5
commit e22043a25b

View file

@ -7267,12 +7267,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMovementDirection)
{ {
current -= anglelimit + offset; current -= anglelimit + offset;
} }
else // huh???
{
current = angle + 180. + offset;
}
mobj->SetAngle(current, !!(flags & FMDF_INTERPOLATE)); mobj->SetAngle(current, !!(flags & FMDF_INTERPOLATE));
} }
else
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));
} }
else else
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE)); mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));