Fix SMF_PRECISE flag for seekers

Use the player's actual eye position when calculating.
This commit is contained in:
Boondorl 2025-06-18 10:33:16 -04:00 committed by Ricardo Luís Vaz Silva
commit 7cac623ecb

View file

@ -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();
}