aboutsummaryrefslogtreecommitdiffstats
path: root/games/cube/files/patch-client.cpp
blob: 40a69731638a29757d5e070fe3e8b088ce1ef0df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
     }
 };