aboutsummaryrefslogtreecommitdiffhomepage
path: root/protocol.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2006-03-24 19:17:51 +0000
committereihrul <eihrul>2006-03-24 19:17:51 +0000
commit1e2c45adf961f878b29b5df111153ee9a084c9d3 (patch)
treee47601efd3302082b5d34767c547a3a13adf1841 /protocol.c
parent5a72766ae21d9a513b0bb86714755e69f92b195a (diff)
downloadenet-1e2c45adf961f878b29b5df111153ee9a084c9d3.tar.gz
enet-1e2c45adf961f878b29b5df111153ee9a084c9d3.zip
undoing change
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/protocol.c b/protocol.c
index bc1b79c..e6263eb 100644
--- a/protocol.c
+++ b/protocol.c
@@ -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);