From 534271c62a9bfa3944939256a84f9ce35cedf538 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 11 Apr 2021 17:50:32 +1000 Subject: [PATCH] - PlayerHorizon::interpolatedsum(): Cut over interpolation code to inline functions that was missed when doing e76f63e2c0d32af278104e391e8d2df119598e2a. --- source/core/gameinput.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 047f027e0..a3dcd0295 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -91,10 +91,7 @@ struct PlayerHorizon fixedhoriz interpolatedsum(double const smoothratio) { - double const ratio = smoothratio * (1. / FRACUNIT); - fixed_t const prev = osum().asq16(); - fixed_t const curr = sum().asq16(); - return q16horiz(prev + xs_CRoundToInt(ratio * (curr - prev))); + return q16horiz(interpolatedvalue(osum().asq16(), sum().asq16(), smoothratio)); } private: