From 85dcffc4421a765c1404b9b352b3fc79503285c4 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 2 Aug 2020 22:10:47 +1000 Subject: [PATCH] - use new `fmulscale16()` static inline for high precision interpolation in place of manual code. --- source/games/duke/src/hudweapon_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/hudweapon_d.cpp b/source/games/duke/src/hudweapon_d.cpp index 85087d5c0..e6d8c921f 100644 --- a/source/games/duke/src/hudweapon_d.cpp +++ b/source/games/duke/src/hudweapon_d.cpp @@ -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;