summaryrefslogtreecommitdiff
path: root/games/cube/files/patch-client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/cube/files/patch-client.cpp')
-rw-r--r--games/cube/files/patch-client.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/games/cube/files/patch-client.cpp b/games/cube/files/patch-client.cpp
new file mode 100644
index 000000000000..40a69731638a
--- /dev/null
+++ b/games/cube/files/patch-client.cpp
@@ -0,0 +1,21 @@
+--- client.cpp.orig Tue Feb 6 01:24:56 2007
++++ client.cpp Tue Feb 6 01:26:30 2007
+@@ -86,7 +86,7 @@
+ {
+ if(!connecting && !disconnecting)
+ {
+- enet_peer_disconnect(clienthost->peers);
++ enet_peer_disconnect(clienthost->peers, 0);
+ enet_host_flush(clienthost);
+ disconnecting = lastmillis;
+ };
+@@ -304,6 +304,9 @@
+ if(disconnecting) disconnect();
+ else server_err();
+ return;
++
++ default:
++ return;
+ }
+ };
+