mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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:
parent
aa789965bf
commit
c5d19c46ba
1 changed files with 4 additions and 1 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue