From 3b9f652290c5c918b459c6e924a48fee2b0795f7 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 12 Oct 2007 17:54:11 +0000 Subject: *** empty log message *** --- peer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer.c b/peer.c index 25f2a27..5629189 100644 --- a/peer.c +++ b/peer.c @@ -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; } -- cgit v1.2.3