- wrap all checks of cl_syncinput in an inline function.

This commit is contained in:
Christoph Oelckers 2020-11-30 23:40:16 +01:00
parent f429871cc6
commit ae36ea88c3
20 changed files with 57 additions and 52 deletions

View file

@ -460,7 +460,7 @@ void ApplyGlobalInput(InputPacket& input, ControlInfo* hidInput, bool const crou
double InputScale()
{
if (!cl_syncinput)
if (!SyncInput())
{
double now = I_msTimeF();
double elapsedInputTicks = lastCheck > 0 ? min(now - lastCheck, 1000.0 / GameTicRate) : 1;