- use new fmulscale16() static inline for high precision interpolation in place of manual code.

This commit is contained in:
Mitchell Richters 2020-08-02 22:10:47 +10:00 committed by Christoph Oelckers
parent 3d165ee182
commit 85dcffc442

View file

@ -290,7 +290,7 @@ void displayweapon_d(int snum, double smoothratio)
o = 0;
looking_arc = fabs(p->q16look_ang / (double)(FRACUNIT)) / 9.;
weapon_sway = p->oweapon_sway + (((p->weapon_sway - p->oweapon_sway) * smoothratio) / MaxSmoothRatio);
weapon_sway = p->oweapon_sway + fmulscale16((p->weapon_sway - p->oweapon_sway), smoothratio);
gs = sprite[p->i].shade;
if(gs > 24) gs = 24;