From 1e2c45adf961f878b29b5df111153ee9a084c9d3 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 24 Mar 2006 19:17:51 +0000 Subject: undoing change --- protocol.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'protocol.c') 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); -- cgit v1.2.3