Update all players' acks in packet-server mode

Fixes potential issue when host switching in packet-server mode
This commit is contained in:
Boondorl 2025-03-24 10:23:36 -04:00 committed by Ricardo Luís Vaz Silva
parent 134e8f2d60
commit 154eea56e6

View file

@ -873,6 +873,9 @@ static void GetPackets()
{
pState.CurrentSequence = seq;
}
// Update this so host switching doesn't have any hiccups in packet-server mode.
if (NetMode == NET_PacketServer && consoleplayer != Net_Arbitrator && pNum != Net_Arbitrator)
pState.SequenceAck = seq;
}
}
}