diff options
author | eihrul <eihrul> | 2007-10-12 17:54:11 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2007-10-12 17:54:11 +0000 |
commit | 3b9f652290c5c918b459c6e924a48fee2b0795f7 (patch) | |
tree | b7e63986e044223e49fb349bb67c27190654cd00 /peer.c | |
parent | ea03f968815f1af71b9f447836c231dd4f505d35 (diff) | |
download | enet-3b9f652290c5c918b459c6e924a48fee2b0795f7.tar.gz enet-3b9f652290c5c918b459c6e924a48fee2b0795f7.zip |
*** empty log message ***
Diffstat (limited to 'peer.c')
-rw-r--r-- | peer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -482,7 +482,7 @@ enet_peer_queue_acknowledgement (ENetPeer * peer, const ENetProtocol * command, if (reliableWindow < currentWindow) reliableWindow += ENET_PEER_RELIABLE_WINDOWS; - if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS) + if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) return NULL; } @@ -585,7 +585,7 @@ enet_peer_queue_incoming_command (ENetPeer * peer, const ENetProtocol * command, reliableSequenceNumber += 0x10000; } - if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS) + if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) goto freePacket; } |