From 1975dc0dc9c73cf9af1c75bad9e85275d02d4f27 Mon Sep 17 00:00:00 2001 From: eihrul Date: Sun, 21 Oct 2007 19:14:54 +0000 Subject: *** empty log message *** --- peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'peer.c') diff --git a/peer.c b/peer.c index 2cba2a6..f9d73fc 100644 --- a/peer.c +++ b/peer.c @@ -482,7 +482,7 @@ enet_peer_queue_acknowledgement (ENetPeer * peer, const ENetProtocol * command, if (command -> header.reliableSequenceNumber < channel -> incomingReliableSequenceNumber) reliableWindow += ENET_PEER_RELIABLE_WINDOWS; - if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) + if (reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1 && reliableWindow <= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS) return NULL; } -- cgit v1.2.3