From 6441042f35af576e1883a5ac7f8a4a768623c313 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 17 Nov 2007 02:30:00 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1428 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/enet/peer.c b/source/enet/peer.c index 2cba2a62..f9d73fc5 100755 --- a/source/enet/peer.c +++ b/source/enet/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; }