openbsd-ports/games/enigma/patches/patch-src_client_cc
jasper 12068675d7 - adjust after recent enet update
from james turner with a tweak by me
2011-06-29 09:06:32 +00:00

24 lines
1021 B
Plaintext

$OpenBSD: patch-src_client_cc,v 1.1 2011/06/29 09:06:32 jasper Exp $
Adjust to libenet > 1.3 API.
--- src/client.cc.orig Tue Jun 28 19:39:06 2011
+++ src/client.cc Tue Jun 28 19:41:18 2011
@@ -128,6 +128,7 @@ bool Client::network_start()
m_network_host = enet_host_create (NULL,
1 /* only allow 1 outgoing connection */,
+ 1 /* only allow 1 outgoing connection */,
57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);
@@ -148,7 +149,7 @@ bool Client::network_start()
sv_address.port = 12345;
/* Initiate the connection, allocating the two channels 0 and 1. */
- m_server = enet_host_connect (m_network_host, &sv_address, 2);
+ m_server = enet_host_connect (m_network_host, &sv_address, 2, 57600);
if (m_server == NULL) {
fprintf (stderr,