From 99357908008f28ee09d307191c1f8ec2b65d6e82 Mon Sep 17 00:00:00 2001 From: eihrul Date: Tue, 23 Nov 2004 21:16:51 +0000 Subject: some tutorial cleanups --- docs/tutorial.dox | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/tutorial.dox b/docs/tutorial.dox index 806ca9a..0cf29fd 100755 --- a/docs/tutorial.dox +++ b/docs/tutorial.dox @@ -233,10 +233,10 @@ dispatching any events. enet_packet_resize (packet, strlen ("packetfoo") + 1); strcpy (& packet -> data [strlen ("packet")], "foo"); - /* Send the packet to the peer over channel id 3. */ + /* Send the packet to the peer over channel id 0. */ /* One could also broadcast the packet by */ - /* enet_host_broadcast (host, 3, packet); */ - enet_peer_send (peer, 3, packet); + /* enet_host_broadcast (host, 0, packet); */ + enet_peer_send (peer, 0, packet); ... ... ... @@ -262,7 +262,7 @@ foreign host. No event is generated. @code ENetEvent event; - enet_peer_disconnect (& client -> peers [0]); + enet_peer_disconnect (peer); /* Allow up to 3 seconds for the disconnect to succeed * and drop any packets received packets. @@ -286,7 +286,7 @@ foreign host. No event is generated. /* We've arrived here, so the disconnect attempt didn't */ /* succeed yet. Force the connection down. */ - enet_peer_reset (& client -> peers [0]); + enet_peer_reset (peer); ... ... ... -- cgit v1.2.3