]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - net_main.c
(patch from Elric) BloodBath renamed to Transfusion
[xonotic/darkplaces.git] / net_main.c
index 9cc149251d3d1af11d66c36f74e6c92c1040eef8..8db5a1b5c3afb8bfedb118a6de592c0061b4c113 100644 (file)
@@ -695,7 +695,7 @@ void NET_Init (void)
        }
        net_hostport = DEFAULTnet_hostport;
 
-       if (COM_CheckParm("-listen") || cls.state == ca_dedicated || gamemode == GAME_BLOODBATH)
+       if (COM_CheckParm("-listen") || cls.state == ca_dedicated || gamemode == GAME_TRANSFUSION)
                listening = true;
 
        SetNetTime();
@@ -737,14 +737,12 @@ NET_Shutdown
 ====================
 */
 
-void           NET_Shutdown (void)
+void NET_Shutdown (void)
 {
-       qsocket_t       *sock;
-
        SetNetTime();
 
-       for (sock = net_activeSockets;sock;sock = net_activeSockets)
-               NET_Close(sock);
+       while (net_activeSockets)
+               NET_Close(net_activeSockets);
 
 //
 // shutdown the drivers