diff options
author | eihrul <eihrul> | 2007-01-07 16:44:02 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2007-01-07 16:44:02 +0000 |
commit | b323663c57a71ba4d88f5296f5394355db251eaa (patch) | |
tree | 282e84bb3edb4ea17fe47d0b7bb4bbc1d1705b6c | |
parent | 92f904f56a5c0f3f7f81dc37645648d9c4368bd7 (diff) | |
download | enet-b323663c57a71ba4d88f5296f5394355db251eaa.tar.gz enet-b323663c57a71ba4d88f5296f5394355db251eaa.zip |
*** empty log message ***
-rw-r--r-- | include/enet/enet.h | 8 | ||||
-rw-r--r-- | 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; @@ -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; |