K_DrawTargetTracking: Fix x coordinate of tracked object's icon at the bottom of the screen.

This was designed to use the angle of the result directly, which was previously incorrect.
This commit is contained in:
toaster 2023-03-18 21:33:21 +00:00
parent 78636bd8d9
commit 89be7b959e

View file

@ -159,7 +159,7 @@ void K_DrawTargetTracking(const TargetTracking& target)
// Simply pointing towards the result doesn't work, so inaccurate hack...
borderDir.x = FixedMul(
FixedMul(
FINESINE((-result.angle >> ANGLETOFINESHIFT) & FINEMASK),
FINESINE((result.angle >> ANGLETOFINESHIFT) & FINEMASK),
FINECOSINE((-result.pitch >> ANGLETOFINESHIFT) & FINEMASK)
),
result.fov