- force scaleAdjust to be 1 when cl_syncinput is 1.

* Above calculation has some micro variances to it which were leading to strange behaviour like the bike's tilting not working properly with `cl_syncinput 1`.
This commit is contained in:
Mitchell Richters 2020-08-04 17:11:32 +10:00
parent 293c1af4c2
commit bc103595ce

View file

@ -1230,7 +1230,7 @@ void GetInput()
setlocalplayerinput(p);
}
double scaleAdjust = elapsedInputTicks * REALGAMETICSPERSEC / 1000.0;
double scaleAdjust = !cl_syncinput ? elapsedInputTicks * REALGAMETICSPERSEC / 1000.0 : 1;
ControlInfo info;
CONTROL_GetInput(&info);
input_t input{};