[enet-cvs] CVS: enet protocol.c,1.16,1.17
Lee Salzman
enet at sferik.cubik.org
Tue Aug 12 20:55:02 PDT 2003
Update of /home/enet/cvsroot/enet
In directory sferik:/tmp/cvs-serv12381
Modified Files:
protocol.c
Log Message:
bug fix: fragmented sends wouldn't work if the first fragment received wasn't the 0th fragment,
as the startSequenceNumber and reliableSequenceNumber would not match
Index: protocol.c
===================================================================
RCS file: /home/enet/cvsroot/enet/protocol.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- protocol.c 2003/05/22 22:35:12 1.16
+++ protocol.c 2003/08/13 01:55:00 1.17
@@ -295,7 +295,8 @@
{
startCommand = (ENetIncomingCommand *) currentCommand;
- if (startCommand -> reliableSequenceNumber == startSequenceNumber)
+ if (startCommand -> command.header.command == ENET_PROTOCOL_COMMAND_SEND_FRAGMENT &&
+ startCommand -> command.sendFragment.startSequenceNumber == startSequenceNumber)
break;
}
More information about the enet-cvs
mailing list