mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- fixed: A_CheckLOF did the trace pitch calculation wrong.
This commit is contained in:
parent
02a586e6b2
commit
70b8afc5ec
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue