From: divverent Date: Tue, 15 Jan 2008 23:31:45 +0000 (+0000) Subject: fix stupid "using port 0" message X-Git-Tag: xonotic-v0.1.0preview~2547 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=936fe943e91ea05be13041caa7dfbe9331e2a675;p=xonotic%2Fdarkplaces.git fix stupid "using port 0" message git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7961 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index 8d000528..54f81fad 100755 --- 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);