|
|
@ -1080,7 +1080,7 @@ void Cvar_Toggle_f( void ) |
|
|
|
|
|
|
|
|
|
|
|
v = !Cvar_VariableInteger( Cmd_Argv( 1 )); |
|
|
|
v = !Cvar_VariableInteger( Cmd_Argv( 1 )); |
|
|
|
|
|
|
|
|
|
|
|
Cvar_Set( Cmd_Argv( 1 ), va( "%i", v )); |
|
|
|
Cvar_Set( Cmd_Argv( 1 ), v ? "1" : "0" ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -1162,7 +1162,6 @@ void Cvar_List_f( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
convar_t *var; |
|
|
|
convar_t *var; |
|
|
|
const char *match = NULL; |
|
|
|
const char *match = NULL; |
|
|
|
char *value; |
|
|
|
|
|
|
|
int count = 0; |
|
|
|
int count = 0; |
|
|
|
size_t matchlen = 0; |
|
|
|
size_t matchlen = 0; |
|
|
|
|
|
|
|
|
|
|
@ -1174,6 +1173,8 @@ void Cvar_List_f( void ) |
|
|
|
|
|
|
|
|
|
|
|
for( var = cvar_vars; var; var = var->next ) |
|
|
|
for( var = cvar_vars; var; var = var->next ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
char value[MAX_VA_STRING]; |
|
|
|
|
|
|
|
|
|
|
|
if( var->name[0] == '@' ) |
|
|
|
if( var->name[0] == '@' ) |
|
|
|
continue; // never shows system cvars
|
|
|
|
continue; // never shows system cvars
|
|
|
|
|
|
|
|
|
|
|
@ -1181,8 +1182,8 @@ void Cvar_List_f( void ) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if( Q_colorstr( var->string )) |
|
|
|
if( Q_colorstr( var->string )) |
|
|
|
value = va( "\"%s\"", var->string ); |
|
|
|
Q_snprintf( value, sizeof( value ), "\"%s\"", var->string ); |
|
|
|
else value = va( "\"^2%s^7\"", var->string ); |
|
|
|
else Q_snprintf( value, sizeof( value ), "\"^2%s^7\"", var->string ); |
|
|
|
|
|
|
|
|
|
|
|
if( FBitSet( var->flags, FCVAR_EXTENDED|FCVAR_ALLOCATED )) |
|
|
|
if( FBitSet( var->flags, FCVAR_EXTENDED|FCVAR_ALLOCATED )) |
|
|
|
Con_Printf( " %-*s %s ^3%s^7\n", 32, var->name, value, var->desc ); |
|
|
|
Con_Printf( " %-*s %s ^3%s^7\n", 32, var->name, value, var->desc ); |
|
|
|