From 6e6c1d4b25e7c833b68da0a2aba6861879e08881 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 31 Jul 2006 18:24:18 +0000 Subject: Fixed registering for the test client (send version as integer) and corrected the off by one packed size. --- src/netcomputer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/netcomputer.cpp') diff --git a/src/netcomputer.cpp b/src/netcomputer.cpp index 2a8ecc2..dc69291 100644 --- a/src/netcomputer.cpp +++ b/src/netcomputer.cpp @@ -43,8 +43,7 @@ void NetComputer::disconnect(const std::string &reason) void NetComputer::send(const Packet *p) { // Create a reliable packet. - ENetPacket *packet = enet_packet_create(p->data, - p->length + 1, + ENetPacket *packet = enet_packet_create(p->data, p->length, ENET_PACKET_FLAG_RELIABLE); // Send the packet to the peer over channel id 0. -- cgit