diff options
author | eihrul <eihrul> | 2006-03-24 19:17:51 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2006-03-24 19:17:51 +0000 |
commit | 1e2c45adf961f878b29b5df111153ee9a084c9d3 (patch) | |
tree | e47601efd3302082b5d34767c547a3a13adf1841 /protocol.c | |
parent | 5a72766ae21d9a513b0bb86714755e69f92b195a (diff) | |
download | enet-1e2c45adf961f878b29b5df111153ee9a084c9d3.tar.gz enet-1e2c45adf961f878b29b5df111153ee9a084c9d3.zip |
undoing change
Diffstat (limited to 'protocol.c')
-rw-r--r-- | protocol.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -777,14 +777,8 @@ enet_protocol_handle_incoming_commands (ENetHost * host, ENetEvent * event) break; case ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT: - if ((command -> header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_DISCONNECT) - enet_peer_queue_acknowledgement (peer, command, header -> sentTime); - break; - - case ENET_PEER_STATE_ACKNOWLEDGING_CONNECT: - if ((command -> header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_DISCONNECT) - enet_peer_queue_acknowledgement (peer, command, header -> sentTime); - break; + if (command -> header.command != ENET_PROTOCOL_COMMAND_DISCONNECT) + break; default: enet_peer_queue_acknowledgement (peer, command, header -> sentTime); |