mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
* Don't truncate the cvar value when the user specifically asks for it
This commit is contained in:
parent
fe349e80ba
commit
881988636a
1 changed files with 4 additions and 10 deletions
|
@ -497,9 +497,6 @@ Handles variable inspection and changing from the console
|
||||||
*/
|
*/
|
||||||
qboolean Cvar_Command( void ) {
|
qboolean Cvar_Command( void ) {
|
||||||
cvar_t *v;
|
cvar_t *v;
|
||||||
char string[ TRUNCATE_LENGTH ];
|
|
||||||
char resetString[ TRUNCATE_LENGTH ];
|
|
||||||
char latchedString[ TRUNCATE_LENGTH ];
|
|
||||||
|
|
||||||
// check variables
|
// check variables
|
||||||
v = Cvar_FindVar (Cmd_Argv(0));
|
v = Cvar_FindVar (Cmd_Argv(0));
|
||||||
|
@ -509,25 +506,22 @@ qboolean Cvar_Command( void ) {
|
||||||
|
|
||||||
// perform a variable print or set
|
// perform a variable print or set
|
||||||
if ( Cmd_Argc() == 1 ) {
|
if ( Cmd_Argc() == 1 ) {
|
||||||
Com_TruncateLongString( string, v->string );
|
|
||||||
Com_TruncateLongString( resetString, v->resetString );
|
|
||||||
Com_Printf ("\"%s\" is:\"%s" S_COLOR_WHITE "\"",
|
Com_Printf ("\"%s\" is:\"%s" S_COLOR_WHITE "\"",
|
||||||
v->name, string );
|
v->name, v->string );
|
||||||
|
|
||||||
if ( !( v->flags & CVAR_ROM ) ) {
|
if ( !( v->flags & CVAR_ROM ) ) {
|
||||||
if ( !Q_stricmp( string, resetString ) ) {
|
if ( !Q_stricmp( v->string, v->resetString ) ) {
|
||||||
Com_Printf (", the default" );
|
Com_Printf (", the default" );
|
||||||
} else {
|
} else {
|
||||||
Com_Printf (" default:\"%s" S_COLOR_WHITE "\"",
|
Com_Printf (" default:\"%s" S_COLOR_WHITE "\"",
|
||||||
resetString );
|
v->resetString );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Com_Printf ("\n");
|
Com_Printf ("\n");
|
||||||
|
|
||||||
if ( v->latchedString ) {
|
if ( v->latchedString ) {
|
||||||
Com_TruncateLongString( latchedString, v->latchedString );
|
Com_Printf( "latched: \"%s\"\n", v->latchedString );
|
||||||
Com_Printf( "latched: \"%s\"\n", latchedString );
|
|
||||||
}
|
}
|
||||||
return qtrue;
|
return qtrue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue