]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix stupid "using port 0" message
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Jan 2008 23:31:45 +0000 (23:31 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Jan 2008 23:31:45 +0000 (23:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7961 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 8d000528c68035377ee8259748d0fda90488ab1f..54f81fad61817b9d229c3a931bc3ce4086ac7fc0 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -788,7 +788,10 @@ void NetConn_OpenClientPorts(void)
        port = bound(0, cl_netport.integer, 65535);
        if (cl_netport.integer != port)
                Cvar_SetValueQuick(&cl_netport, port);
-       Con_Printf("Client using port %i\n", port);
+       if(port == 0)
+               Con_Printf("Client using an automatically assigned port\n");
+       else
+               Con_Printf("Client using port %i\n", port);
        NetConn_OpenClientPort("local:2", 0);
        NetConn_OpenClientPort(net_address.string, port);
        //NetConn_OpenClientPort(net_address_ipv6.string, port);