mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Make sure getiputframe's partial frame has an updated time value, to keep csqc-based prediction smooth.
This commit is contained in:
parent
506484cb4b
commit
937a2b9819
1 changed files with 1 additions and 0 deletions
|
@ -6949,6 +6949,7 @@ static void PF_cs_getinputstate(void)
|
|||
if (seq == cl.movemessages)
|
||||
{ //the partial/pending frame!
|
||||
G_FLOAT(OFS_RETURN) = 1;
|
||||
cl.pendingcmd.seconds = cl.time - cl.pendingcmd.servertime; //make sure this is kept current. its important for smoothness.
|
||||
CL_CSQC_SetInputs(&cl.pendingcmd, true);
|
||||
}
|
||||
else if (cl.movecmds[seq&MOVECMDS_MASK].sequence == seq)
|
||||
|
|
Loading…
Reference in a new issue