mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- Store scaleAdjust
directly inside the GameInput
object.
This commit is contained in:
parent
80dd01aef0
commit
94e23343e1
7 changed files with 32 additions and 25 deletions
|
@ -99,7 +99,6 @@ CVAR(Bool, cl_resumesavegame, true, CVAR_ARCHIVE)
|
|||
|
||||
static uint64_t stabilityticduration = 0;
|
||||
static uint64_t stabilitystarttime = 0;
|
||||
static double inputScale;
|
||||
|
||||
DCorePlayer* PlayerArray[MAXPLAYERS];
|
||||
|
||||
|
@ -145,7 +144,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
|||
savegamefile = "";
|
||||
}
|
||||
cmd->ucmd = {};
|
||||
gameInput.getInput(inputScale, &cmd->ucmd);
|
||||
gameInput.getInput(&cmd->ucmd);
|
||||
cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
|
||||
}
|
||||
|
||||
|
@ -620,7 +619,7 @@ void TryRunTics (void)
|
|||
}
|
||||
if (!SyncInput())
|
||||
{
|
||||
gameInput.getInput(inputScale);
|
||||
gameInput.getInput();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -752,7 +751,7 @@ void MainLoop ()
|
|||
I_SetFrameTime();
|
||||
|
||||
// update the scale factor for unsynchronised input here.
|
||||
inputScale = I_GetInputFrac();
|
||||
gameInput.UpdateInputScale();
|
||||
|
||||
TryRunTics (); // will run at least one tic
|
||||
// Update display, next frame, with current state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue