mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-26 05:41:07 +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;
|
offsetforward *= self->radius;
|
||||||
offsetwidth *= self->radius;
|
offsetwidth *= self->radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
pos = self->PosPlusZ(offsetheight - self->Floorclip);
|
pos = self->PosPlusZ(offsetheight - self->Floorclip);
|
||||||
|
|
||||||
|
@ -3762,7 +3762,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pitch -= VecToAngle(xydist, target->Center());
|
pitch -= VecToAngle(xydist, target->Center() - pos.Z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (flags & CLOFF_ALLOWNULL)
|
else if (flags & CLOFF_ALLOWNULL)
|
||||||
|
|
Loading…
Reference in a new issue