- InputScale(): Tidy up some math I just put in.

* Time for bed... *yarns*.
This commit is contained in:
Mitch Richters 2021-11-10 22:23:59 +11:00
parent 3c4afaa6ee
commit 6581d9d709

View file

@ -489,7 +489,7 @@ double InputScale()
// on this fractional scale to increase by over 100 ms as the framerate increases.
// This isn't pretty, but it's accurate to within 1-2 ms from 60 fps to at least 1000 fps.
const double result = elapsedInputTicks * GameTicRate / 1000.;
const double scaler = cl_preciseinputscaling ? 1. + InputScalePercentage * (1. + result - result * 2.) : 1.;
const double scaler = cl_preciseinputscaling ? 1. + InputScalePercentage * (1. - result) : 1.;
return result * scaler;
}
else