From 92f904f56a5c0f3f7f81dc37645648d9c4368bd7 Mon Sep 17 00:00:00 2001 From: eihrul Date: Wed, 13 Dec 2006 04:36:07 +0000 Subject: *** empty log message *** --- peer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'peer.c') diff --git a/peer.c b/peer.c index 1a23c4c..cab6245 100644 --- a/peer.c +++ b/peer.c @@ -116,7 +116,8 @@ enet_peer_send (ENetPeer * peer, enet_uint8 channelID, ENetPacket * packet) fragmentNumber, fragmentOffset; - packet -> flags = ENET_PACKET_FLAG_RELIABLE; + packet -> flags |= ENET_PACKET_FLAG_RELIABLE; + packet -> flags &= ~ENET_PACKET_FLAG_UNSEQUENCED; for (fragmentNumber = 0, fragmentOffset = 0; @@ -311,9 +312,6 @@ enet_peer_reset (ENetPeer * peer) peer -> outgoingPeerID = ENET_PROTOCOL_MAXIMUM_PEER_ID; peer -> sessionID = 0; - peer -> address.host = ENET_HOST_ANY; - peer -> address.port = 0; - peer -> state = ENET_PEER_STATE_DISCONNECTED; peer -> incomingBandwidth = 0; -- cgit v1.2.3