- PlayerHorizon::interpolatedsum(): Cut over interpolation code to inline functions that was missed when doing e76f63e2c0.

This commit is contained in:
Mitchell Richters 2021-04-11 17:50:32 +10:00
parent 656705bcd7
commit 534271c62a

View file

@ -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: