Make sure cmd.latency is always 0 in mode attack?

This commit is contained in:
fickleheart 2019-01-09 09:05:57 -06:00
parent 81a7cdf6e8
commit d20122327f
1 changed files with 1 additions and 1 deletions

View File

@ -2154,7 +2154,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 = 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, MAXPREDICTTICS-1); //@TODO add a cvar to allow setting this max
}
}