Browse Source

*** empty log message ***

eihrul 18 years ago
parent
commit
b323663c57
2 changed files with 5 additions and 5 deletions
  1. 4 4
      include/enet/enet.h
  2. 1 1
      peer.c

+ 4 - 4
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;

+ 1 - 1
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;