mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-25 18:21:47 +00:00
- Move call to I_GetInputFrac()
to ensure we're never stalled waiting for a tic.
This commit is contained in:
parent
d665037075
commit
9f8cda4be3
2 changed files with 3 additions and 4 deletions
|
@ -1982,7 +1982,6 @@ void Net_SkipCommand (int cmd, uint8_t **stream)
|
|||
void Net_ClearFifo(void)
|
||||
{
|
||||
I_SetFrameTime();
|
||||
I_ResetInputTime();
|
||||
gametime = I_GetTime();
|
||||
}
|
||||
|
||||
|
|
|
@ -562,9 +562,6 @@ void TryRunTics (void)
|
|||
realtics = entertic - oldentertics;
|
||||
oldentertics = entertic;
|
||||
|
||||
// update the scale factor for unsynchronised input here.
|
||||
inputScale = I_GetInputFrac();
|
||||
|
||||
// get available tics
|
||||
NetUpdate ();
|
||||
|
||||
|
@ -744,6 +741,9 @@ void MainLoop ()
|
|||
}
|
||||
I_SetFrameTime();
|
||||
|
||||
// update the scale factor for unsynchronised input here.
|
||||
inputScale = I_GetInputFrac();
|
||||
|
||||
TryRunTics (); // will run at least one tic
|
||||
// Update display, next frame, with current state.
|
||||
I_StartTic();
|
||||
|
|
Loading…
Reference in a new issue