diff options
author | eihrul <eihrul> | 2010-06-09 21:16:23 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2010-06-09 21:16:23 +0000 |
commit | 572636062e61ad66cc2b4d232394d9de0645baf2 (patch) | |
tree | 1307f92de016aaf9fc32179eff193a820d49c2b6 /peer.c | |
parent | 2d985dba913f815302b8fb86c9ff0956f3c2f1a3 (diff) | |
download | enet-572636062e61ad66cc2b4d232394d9de0645baf2.tar.gz enet-572636062e61ad66cc2b4d232394d9de0645baf2.zip |
1.3.0 import
Diffstat (limited to 'peer.c')
-rw-r--r-- | peer.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |