r173 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Oct 21 15:52:52 EDT 2005


Author: tma
Date: 2005-10-21 15:52:52 -0400 (Fri, 21 Oct 2005)
New Revision: 173

Modified:
   trunk/code/qcommon/common.c
Log:
* Tab completed commands no longer treated like cvars


Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2005-10-21 18:07:25 UTC (rev 172)
+++ trunk/code/qcommon/common.c	2005-10-21 19:52:52 UTC (rev 173)
@@ -3209,12 +3209,24 @@
 
 /*
 ===============
-PrintMatches
+PrintCmdMatches
 
 ===============
 */
-static void PrintMatches( const char *s ) {
+static void PrintCmdMatches( const char *s ) {
 	if ( !Q_stricmpn( s, shortestMatch, strlen( shortestMatch ) ) ) {
+		Com_Printf( "    %s\n", s );
+	}
+}
+
+/*
+===============
+PrintCvarMatches
+
+===============
+*/
+static void PrintCvarMatches( const char *s ) {
+	if ( !Q_stricmpn( s, shortestMatch, strlen( shortestMatch ) ) ) {
 		Com_Printf( "    %s = \"%s\"\n", s, Cvar_VariableString( s ) );
 	}
 }
@@ -3309,6 +3321,6 @@
 	Com_Printf( "]%s\n", completionField->buffer );
 
 	// run through again, printing matches
-	Cmd_CommandCompletion( PrintMatches );
-	Cvar_CommandCompletion( PrintMatches );
+	Cmd_CommandCompletion( PrintCmdMatches );
+	Cvar_CommandCompletion( PrintCvarMatches );
 }




More information about the quake3-commits mailing list