mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- InputScale()
: Tidy up some math I just put in.
* Time for bed... *yarns*.
This commit is contained in:
parent
3c4afaa6ee
commit
6581d9d709
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue