aboutsummaryrefslogtreecommitdiffhomepage
path: root/protocol.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2007-10-12 05:21:57 +0000
committereihrul <eihrul>2007-10-12 05:21:57 +0000
commit7bcef65dbdddba239f7f38cd9cf199dd3266733f (patch)
treec1cf01d2c68eb91faf09f2f89f10e5e48c417393 /protocol.c
parent0b49c1bbcd804ffd19b964075df6aa26045359ae (diff)
downloadenet-7bcef65dbdddba239f7f38cd9cf199dd3266733f.tar.gz
enet-7bcef65dbdddba239f7f38cd9cf199dd3266733f.zip
*** empty log message ***
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol.c b/protocol.c
index f8794aa..e426243 100644
--- a/protocol.c
+++ b/protocol.c
@@ -1174,8 +1174,8 @@ enet_protocol_send_reliable_outgoing_commands (ENetHost * host, ENetPeer * peer)
if (channel != NULL &&
outgoingCommand -> sendAttempts < 1 &&
! (outgoingCommand -> reliableSequenceNumber % ENET_PEER_RELIABLE_WINDOW_SIZE) &&
- channel -> usedReliableWindows & ((((1 << (ENET_PEER_RELIABLE_WINDOWS / 2)) - 1) << reliableWindow) |
- (((1 << (ENET_PEER_RELIABLE_WINDOWS / 2)) - 1) >> (ENET_PEER_RELIABLE_WINDOW_SIZE - reliableWindow))))
+ channel -> usedReliableWindows & ((((1 << ENET_PEER_FREE_RELIABLE_WINDOWS) - 1) << reliableWindow) |
+ (((1 << ENET_PEER_FREE_RELIABLE_WINDOWS) - 1) >> (ENET_PEER_RELIABLE_WINDOW_SIZE - reliableWindow))))
break;
commandSize = commandSizes [outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK];