From 936fe943e91ea05be13041caa7dfbe9331e2a675 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 15 Jan 2008 23:31:45 +0000 Subject: [PATCH] fix stupid "using port 0" message git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7961 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2