mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 00:21:30 +00:00
- Repair bad setup for global input scale uncovered after making Duke better.
* `I_GetInputFrac()` must always be called, even if we don't use it otherwise the value grows too large.
This commit is contained in:
parent
4355a44721
commit
3442290fa2
1 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
|||
}
|
||||
cmd->ucmd = {};
|
||||
I_GetEvent();
|
||||
gi->GetInput(inputScale, &cmd->ucmd);
|
||||
gi->GetInput(!SyncInput() ? inputScale : 1., &cmd->ucmd);
|
||||
cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
|
||||
}
|
||||
|
||||
|
@ -564,7 +564,7 @@ void TryRunTics (void)
|
|||
oldentertics = entertic;
|
||||
|
||||
// update the scale factor for unsynchronised input here.
|
||||
inputScale = !SyncInput() ? I_GetInputFrac() : 1.;
|
||||
inputScale = I_GetInputFrac();
|
||||
|
||||
// get available tics
|
||||
NetUpdate ();
|
||||
|
@ -614,7 +614,7 @@ void TryRunTics (void)
|
|||
if (!SyncInput())
|
||||
{
|
||||
I_GetEvent();
|
||||
gi->GetInput(inputScale);
|
||||
gi->GetInput(!SyncInput() ? inputScale : 1.);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue