Fix SMF_PRECISE flag for seekers
Use the player's actual eye position when calculating.
This commit is contained in:
parent
885c1d2920
commit
7cac623ecb
1 changed files with 1 additions and 1 deletions
|
|
@ -2374,7 +2374,7 @@ bool P_SeekerMissile (AActor *actor, DAngle thresh, DAngle turnMax, bool precise
|
|||
double aimheight = target->Height/2;
|
||||
if (target->player)
|
||||
{
|
||||
aimheight = target->player->DefaultViewHeight();
|
||||
aimheight = target->player->viewz - target->Z();
|
||||
}
|
||||
pitch = DVector2(dist, target->Z() + aimheight - actor->Center()).Angle();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue