Merge branch 'latency-tweaks' into 'next'
Fix cmd latency occasionally jumping to max See merge request KartKrew/Kart-Public!78
This commit is contained in:
commit
d85dcd073a
1 file changed
+1
-1
+1
-1
@@ -2162,7 +2162,7 @@ void G_Ticker(boolean run)
|
||||
G_CopyTiccmd(cmd, &netcmds[buf][i], 1);
|
||||
|
||||
// Use the leveltime sent in the player's ticcmd to determine control lag
|
||||
cmd->latency = modeattacking ? 0 : min((leveltime & 0xFF) - cmd->latency, MAXPREDICTTICS-1); //@TODO add a cvar to allow setting this max
|
||||
cmd->latency = modeattacking ? 0 : min(((leveltime & 0xFF) - cmd->latency) & 0xFF, MAXPREDICTTICS-1); //@TODO add a cvar to allow setting this max
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user