Make sure we're acking the sequence we think we are.

This commit is contained in:
Shpoike 2021-11-13 22:22:57 +00:00
parent e51c134d02
commit 5e3fadf3b5

View file

@ -693,7 +693,7 @@ void SVFTE_Ack(client_t *client, int sequence)
client->lastacksequence = sequence; client->lastacksequence = sequence;
frame = &client->frames[sequence&(client->numframes-1)]; frame = &client->frames[sequence&(client->numframes-1)];
if (frame->sequence >= 0) if (frame->sequence == sequence)
{ {
frame->sequence = -1; frame->sequence = -1;
host_client->ping_times[host_client->num_pings%NUM_PING_TIMES] = qcvm->time - frame->timestamp; host_client->ping_times[host_client->num_pings%NUM_PING_TIMES] = qcvm->time - frame->timestamp;