mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- PlayerHorizon::interpolatedsum(): Cut over interpolation code to inline functions that was missed when doing e76f63e2c0
.
This commit is contained in:
parent
656705bcd7
commit
534271c62a
1 changed files with 1 additions and 4 deletions
|
@ -91,10 +91,7 @@ struct PlayerHorizon
|
||||||
|
|
||||||
fixedhoriz interpolatedsum(double const smoothratio)
|
fixedhoriz interpolatedsum(double const smoothratio)
|
||||||
{
|
{
|
||||||
double const ratio = smoothratio * (1. / FRACUNIT);
|
return q16horiz(interpolatedvalue(osum().asq16(), sum().asq16(), smoothratio));
|
||||||
fixed_t const prev = osum().asq16();
|
|
||||||
fixed_t const curr = sum().asq16();
|
|
||||||
return q16horiz(prev + xs_CRoundToInt(ratio * (curr - prev)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue