mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
d2735d7632
commit
69cbb7a382
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue