From b323663c57a71ba4d88f5296f5394355db251eaa Mon Sep 17 00:00:00 2001 From: eihrul Date: Sun, 7 Jan 2007 16:44:02 +0000 Subject: *** empty log message *** --- include/enet/enet.h | 8 ++++---- peer.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/enet/enet.h b/include/enet/enet.h index 72e36c8..03a8f29 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -188,10 +188,10 @@ enum typedef struct _ENetChannel { - enet_uint32 outgoingReliableSequenceNumber; - enet_uint32 outgoingUnreliableSequenceNumber; - enet_uint32 incomingReliableSequenceNumber; - enet_uint32 incomingUnreliableSequenceNumber; + enet_uint16 outgoingReliableSequenceNumber; + enet_uint16 outgoingUnreliableSequenceNumber; + enet_uint16 incomingReliableSequenceNumber; + enet_uint16 incomingUnreliableSequenceNumber; ENetList incomingReliableCommands; ENetList incomingUnreliableCommands; } ENetChannel; diff --git a/peer.c b/peer.c index cab6245..50df774 100644 --- a/peer.c +++ b/peer.c @@ -200,7 +200,7 @@ enet_peer_receive (ENetPeer * peer, enet_uint8 channelID) incomingCommand = (ENetIncomingCommand *) enet_list_front (& channel -> incomingReliableCommands); if (incomingCommand -> fragmentsRemaining > 0 || - incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber + 1) + incomingCommand -> reliableSequenceNumber != (enet_uint16) (channel -> incomingReliableSequenceNumber + 1)) return NULL; channel -> incomingReliableSequenceNumber = incomingCommand -> reliableSequenceNumber; -- cgit v1.2.3