updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / enigma_sdl / enigma-1.01-netgame.patch
blobbcdba720fa60a4eb3c829d68feb3efad1ddadd70
1 --- enigma-1.01/src/netgame.cc.orig 2010-12-24 12:30:24.360000068 +0200
2 +++ enigma-1.01/src/netgame.cc 2010-12-24 12:32:45.669000051 +0200
3 @@ -155,7 +155,7 @@
4 network_address.host = ENET_HOST_ANY;
5 network_address.port = 12345;
7 - network_host = enet_host_create (&network_address, 1, 0, 0);
8 + network_host = enet_host_create (&network_address, 1, 0, 0, 0);
9 if (network_host == NULL) {
10 fprintf (stderr,
11 "SV: An error occurred while trying to create an ENet server host.\n");
12 @@ -240,6 +240,7 @@
13 ENetHost *m_network_host;
14 m_network_host = enet_host_create (NULL,
15 1 /* only allow 1 outgoing connection */,
16 + 1 /* only allow 1 outgoing connection */,
17 57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
18 14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);
20 @@ -260,7 +261,7 @@
22 /* Initiate the connection, allocating the two channels 0 and 1. */
23 int numchannels = 2;
24 - m_server = enet_host_connect (m_network_host, &sv_address, numchannels);
25 + m_server = enet_host_connect (m_network_host, &sv_address, numchannels, 57600);
27 if (m_server == NULL) {
28 fprintf (stderr,