1
0
Fork 0
forked from fte/fteqw

Fix partial fakeshaft not always appearing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6313 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2023-01-09 05:11:57 +00:00
parent aa789965bf
commit c5d19c46ba

View file

@ -2968,9 +2968,12 @@ void CL_UpdateBeams (float frametime)
VectorAngles (org, NULL, ang, false); VectorAngles (org, NULL, ang, false);
// lerp pitch // lerp pitch
delta = anglemod(viewang[0] - ang[0]);
if (delta > 180)
delta -= 360;
if (ang[0] < -180) if (ang[0] < -180)
ang[0] += 360; ang[0] += 360;
ang[0] += (viewang[0] - ang[0]) * f; ang[0] += delta * f;
// lerp yaw // lerp yaw
delta = anglemod(viewang[1] - ang[1]); delta = anglemod(viewang[1] - ang[1]);