aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2004-12-23 08:19:42 +0000
committereihrul <eihrul>2004-12-23 08:19:42 +0000
commitd381b4b7af1815e8f7a3923b2d0e62f2b61ac4e2 (patch)
treea413baa793b63a20861e738f0fb3aac19fcae6c8 /peer.c
parent33974e01a2e3f1bc1fdad8ae05e9aa9e9612cb0d (diff)
downloadenet-d381b4b7af1815e8f7a3923b2d0e62f2b61ac4e2.tar.gz
enet-d381b4b7af1815e8f7a3923b2d0e62f2b61ac4e2.zip
possible fix for unsequenced packets
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c4
1 files changed, 3 insertions, 1 deletions
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