aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2006-12-13 04:36:07 +0000
committereihrul <eihrul>2006-12-13 04:36:07 +0000
commit92f904f56a5c0f3f7f81dc37645648d9c4368bd7 (patch)
tree25012a9539552eaded9b8f97e9c6f057e466e2b5 /peer.c
parentdf636cc8f79fac3c665a9740c5803ee71f965d16 (diff)
downloadenet-92f904f56a5c0f3f7f81dc37645648d9c4368bd7.tar.gz
enet-92f904f56a5c0f3f7f81dc37645648d9c4368bd7.zip
*** empty log message ***
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c6
1 files changed, 2 insertions, 4 deletions
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;