| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/games/cube/files/ |
Upload File : |
--- client.cpp.orig 2011-11-07 18:39:52.000000000 +0100
+++ client.cpp 2011-11-07 18:55:26.000000000 +0100
@@ -63,12 +63,18 @@
conoutf("could not resolve server %s", servername);
return;
};
-
+#if ENET_VERSION > 130
+ clienthost = enet_host_create(NULL, 1, 0, rate, rate);
+#else
clienthost = enet_host_create(NULL, 1, rate, rate);
-
+#endif
if(clienthost)
{
+#if ENET_VERSION > 130
+ enet_host_connect(clienthost, &address, 1, 0);
+#else
enet_host_connect(clienthost, &address, 1);
+#endif
enet_host_flush(clienthost);
connecting = lastmillis;
connattempts = 0;
@@ -86,7 +92,7 @@
{
if(!connecting && !disconnecting)
{
- enet_peer_disconnect(clienthost->peers);
+ enet_peer_disconnect(clienthost->peers, 0);
enet_host_flush(clienthost);
disconnecting = lastmillis;
};
@@ -304,6 +310,9 @@
if(disconnecting) disconnect();
else server_err();
return;
+
+ default:
+ return;
}
};