From d381b4b7af1815e8f7a3923b2d0e62f2b61ac4e2 Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 23 Dec 2004 08:19:42 +0000 Subject: possible fix for unsequenced packets --- peer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'peer.c') diff --git a/peer.c b/peer.c index 9513728..5b86b23 100644 --- a/peer.c +++ b/peer.c @@ -517,7 +517,9 @@ enet_peer_queue_outgoing_command (ENetPeer * peer, const ENetProtocol * command, else if (command -> header.flags & ENET_PROTOCOL_FLAG_UNSEQUENCED) { - outgoingCommand -> reliableSequenceNumber = channel -> outgoingReliableSequenceNumber; + ++ channel -> outgoingUnsequencedGroup; + + outgoingCommand -> reliableSequenceNumber = 0; outgoingCommand -> unreliableSequenceNumber = 0; } else -- cgit v1.2.3