Fixed broken aiming with A_CheckLOF.

This commit is contained in:
MajorCooke 2016-01-28 12:24:40 -06:00
parent 6715a97d6e
commit 772f086a5e
1 changed files with 2 additions and 2 deletions

View File

@ -3448,11 +3448,11 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
} }
else if (flags & CLOFF_AIM_VERT_NOOFFSET) else if (flags & CLOFF_AIM_VERT_NOOFFSET)
{ {
pitch += R_PointToAngle2 (0,0, xydist, target->Z() - pos.z + offsetheight + target->height / 2); pitch -= R_PointToAngle2 (0,0, xydist, target->Z() - pos.z + offsetheight + target->height / 2);
} }
else else
{ {
pitch += R_PointToAngle2 (0,0, xydist, target->Z() - pos.z + target->height / 2); pitch -= R_PointToAngle2 (0,0, xydist, target->Z() - pos.z + target->height / 2);
} }
} }
else if (flags & CLOFF_ALLOWNULL) else if (flags & CLOFF_ALLOWNULL)