mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +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
|
@ -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