mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 04:50:42 +00:00
- use new fmulscale16()
static inline for high precision interpolation in place of manual code.
This commit is contained in:
parent
3d165ee182
commit
85dcffc442
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue