- fixed: A_CheckLOF did the trace pitch calculation wrong.

This commit is contained in:
Christoph Oelckers 2016-04-03 21:26:57 +02:00
parent 02a586e6b2
commit 70b8afc5ec

View file

@ -3705,7 +3705,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
{
offsetforward *= self->radius;
offsetwidth *= self->radius;
}
}
pos = self->PosPlusZ(offsetheight - self->Floorclip);
@ -3762,7 +3762,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
}
else
{
pitch -= VecToAngle(xydist, target->Center());
pitch -= VecToAngle(xydist, target->Center() - pos.Z);
}
}
else if (flags & CLOFF_ALLOWNULL)