- fixed: The pitch calculation did not check the calling actor's height when retrieving the position to calculate the pitch from.

This commit is contained in:
Christoph Oelckers 2016-04-19 00:52:08 +02:00
parent d2735d7632
commit 69cbb7a382

View file

@ -2856,6 +2856,10 @@ void A_Face(AActor *self, AActor *other, DAngle max_turn, DAngle max_pitch, DAng
{
target_z = other->Center();
}
if (source_z >= self->Top())
{
source_z = self->Center();
}
//Note there is no +32 on purpose. This is for customization sake.
//If one doesn't want this behavior, just don't use FAF_BOTTOM.