r1315 - in trunk/code: client qcommon ui

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Apr 12 14:58:07 EDT 2008


Author: tma
Date: 2008-04-12 14:58:06 -0400 (Sat, 12 Apr 2008)
New Revision: 1315

Modified:
   trunk/code/client/cl_main.c
   trunk/code/qcommon/files.c
   trunk/code/ui/ui_main.c
Log:
* Fix some recently introduced warnings
* Fix referenced pk3 list including excessive number of spaces


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2008-04-12 17:14:53 UTC (rev 1314)
+++ trunk/code/client/cl_main.c	2008-04-12 18:58:06 UTC (rev 1315)
@@ -1843,7 +1843,7 @@
 	int				numservers;
 	byte*			buffptr;
 	byte*			buffend;
-	netadrtype_t		family;
+	netadrtype_t		family = NA_IP;
 	
 	Com_Printf("CL_ServersResponsePacket\n");
 

Modified: trunk/code/qcommon/files.c
===================================================================
--- trunk/code/qcommon/files.c	2008-04-12 17:14:53 UTC (rev 1314)
+++ trunk/code/qcommon/files.c	2008-04-12 18:58:06 UTC (rev 1315)
@@ -3112,10 +3112,10 @@
 	for ( search = fs_searchpaths ; search ; search = search->next ) {
 		// is the element a pak file?
 		if ( search->pack ) {
-			if (*info) {
-				Q_strcat(info, sizeof( info ), " " );
-			}
 			if (search->pack->referenced || Q_stricmpn(search->pack->pakGamename, BASEGAME, strlen(BASEGAME))) {
+				if (*info) {
+					Q_strcat(info, sizeof( info ), " " );
+				}
 				Q_strcat( info, sizeof( info ), search->pack->pakGamename );
 				Q_strcat( info, sizeof( info ), "/" );
 				Q_strcat( info, sizeof( info ), search->pack->pakBasename );

Modified: trunk/code/ui/ui_main.c
===================================================================
--- trunk/code/ui/ui_main.c	2008-04-12 17:14:53 UTC (rev 1314)
+++ trunk/code/ui/ui_main.c	2008-04-12 18:58:06 UTC (rev 1315)
@@ -5939,7 +5939,6 @@
 */
 static void UI_StartServerRefresh(qboolean full)
 {
-	int		i;
 	char	*ptr;
 
 	qtime_t q;




More information about the quake3-commits mailing list