mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
*** empty log message ***
This commit is contained in:
parent
ea03f96881
commit
3b9f652290
1 changed files with 2 additions and 2 deletions
4
peer.c
4
peer.c
|
@ -482,7 +482,7 @@ enet_peer_queue_acknowledgement (ENetPeer * peer, const ENetProtocol * command,
|
||||||
if (reliableWindow < currentWindow)
|
if (reliableWindow < currentWindow)
|
||||||
reliableWindow += ENET_PEER_RELIABLE_WINDOWS;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -585,7 +585,7 @@ enet_peer_queue_incoming_command (ENetPeer * peer, const ENetProtocol * command,
|
||||||
reliableSequenceNumber += 0x10000;
|
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;
|
goto freePacket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue