[quake3-commits] r2050 - in trunk/code: client qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jun 21 09:31:19 EDT 2011


Author: thilo
Date: 2011-06-21 09:31:19 -0400 (Tue, 21 Jun 2011)
New Revision: 2050

Modified:
   trunk/code/client/cl_parse.c
   trunk/code/qcommon/net_ip.c
Log:
- Clear ip address listings after a NET_Restart
- check for oldGameSet instead of the gamename string

Modified: trunk/code/client/cl_parse.c
===================================================================
--- trunk/code/client/cl_parse.c	2011-06-21 12:32:43 UTC (rev 2049)
+++ trunk/code/client/cl_parse.c	2011-06-21 13:31:19 UTC (rev 2050)
@@ -533,7 +533,7 @@
 		CL_StopRecord_f();
 	
 	// reinitialize the filesystem if the game directory has changed
-	if(FS_ConditionalRestart(clc.checksumFeed, qfalse) && !cls.oldGame[0])
+	if(FS_ConditionalRestart(clc.checksumFeed, qfalse) && !cls.oldGameSet)
 	{
 		cls.oldGameSet = qtrue;
 		Q_strncpyz(cls.oldGame, oldGame, sizeof(cls.oldGame));

Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c	2011-06-21 12:32:43 UTC (rev 2049)
+++ trunk/code/qcommon/net_ip.c	2011-06-21 13:31:19 UTC (rev 2050)
@@ -1290,6 +1290,8 @@
 {
 	struct ifaddrs *ifap, *search;
 
+	numIP = 0;
+
 	if(getifaddrs(&ifap))
 		Com_Printf("NET_GetLocalAddress: Unable to get list of network interfaces: %s\n", NET_ErrorString());
 	else
@@ -1312,6 +1314,8 @@
 	struct addrinfo	hint;
 	struct addrinfo	*res = NULL;
 
+	numIP = 0;
+
 	if(gethostname( hostname, 256 ) == SOCKET_ERROR)
 		return;
 



More information about the quake3-commits mailing list