updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / enigma_sdl / enigma-1.01-enet13.patch
blob913558115af9781186c4d3f3bc6ca527755b36ba
1 --- enigma-1.01/src/client.cc.orig 2010-12-24 12:23:35.842000067 +0200
2 +++ enigma-1.01/src/client.cc 2010-12-24 12:25:21.008000067 +0200
3 @@ -128,11 +128,12 @@
5 m_network_host = enet_host_create (NULL,
6 1 /* only allow 1 outgoing connection */,
7 + 1 /* only allow 1 outgoing connection */,
8 57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
9 14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);
11 if (m_network_host == NULL) {
12 - fprintf (stderr,
13 + fprintf (stderr,
14 "An error occurred while trying to create an ENet client host.\n");
15 return false;
17 @@ -148,7 +149,7 @@
18 sv_address.port = 12345;
20 /* Initiate the connection, allocating the two channels 0 and 1. */
21 - m_server = enet_host_connect (m_network_host, &sv_address, 2);
22 + m_server = enet_host_connect (m_network_host, &sv_address, 2, 57600);
24 if (m_server == NULL) {
25 fprintf (stderr,