aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2010-06-09 21:16:23 +0000
committereihrul <eihrul>2010-06-09 21:16:23 +0000
commit572636062e61ad66cc2b4d232394d9de0645baf2 (patch)
tree1307f92de016aaf9fc32179eff193a820d49c2b6 /peer.c
parent2d985dba913f815302b8fb86c9ff0956f3c2f1a3 (diff)
downloadenet-572636062e61ad66cc2b4d232394d9de0645baf2.tar.gz
enet-572636062e61ad66cc2b4d232394d9de0645baf2.zip
1.3.0 import
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/peer.c b/peer.c
index 1c616fa..d778ce1 100644
--- a/peer.c
+++ b/peer.c
@@ -325,7 +325,7 @@ void
enet_peer_reset (ENetPeer * peer)
{
peer -> outgoingPeerID = ENET_PROTOCOL_MAXIMUM_PEER_ID;
- peer -> sessionID = 0;
+ peer -> connectID = 0;
peer -> state = ENET_PEER_STATE_DISCONNECTED;
@@ -363,7 +363,7 @@ enet_peer_reset (ENetPeer * peer)
peer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE;
peer -> incomingUnsequencedGroup = 0;
peer -> outgoingUnsequencedGroup = 0;
- peer -> disconnectData = 0;
+ peer -> eventData = 0;
memset (peer -> unsequencedWindow, 0, sizeof (peer -> unsequencedWindow));
@@ -477,7 +477,7 @@ enet_peer_disconnect_later (ENetPeer * peer, enet_uint32 data)
enet_list_empty (& peer -> sentReliableCommands)))
{
peer -> state = ENET_PEER_STATE_DISCONNECT_LATER;
- peer -> disconnectData = data;
+ peer -> eventData = data;
}
else
enet_peer_disconnect (peer, data);