possible fix for unsequenced packets

This commit is contained in:
eihrul 2004-12-23 08:19:42 +00:00
parent 33974e01a2
commit d381b4b7af

4
peer.c
View file

@ -517,7 +517,9 @@ enet_peer_queue_outgoing_command (ENetPeer * peer, const ENetProtocol * command,
else else
if (command -> header.flags & ENET_PROTOCOL_FLAG_UNSEQUENCED) if (command -> header.flags & ENET_PROTOCOL_FLAG_UNSEQUENCED)
{ {
outgoingCommand -> reliableSequenceNumber = channel -> outgoingReliableSequenceNumber; ++ channel -> outgoingUnsequencedGroup;
outgoingCommand -> reliableSequenceNumber = 0;
outgoingCommand -> unreliableSequenceNumber = 0; outgoingCommand -> unreliableSequenceNumber = 0;
} }
else else