aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-11-01 16:07:13 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-11-01 16:07:13 +0000
commitc4ac4295935c145c992fdfd27085c3f95559c3a0 (patch)
tree72eedeb2210d711ec84b58d2cb5b2e3f671d21a3 /code/qcommon
parentc02e4db7362fe399946a7151e78351248536f06c (diff)
downloadioquake3-aero-c4ac4295935c145c992fdfd27085c3f95559c3a0.tar.gz
ioquake3-aero-c4ac4295935c145c992fdfd27085c3f95559c3a0.zip
* Don't truncate the cvar value when the user specifically asks for it
git-svn-id: svn://svn.icculus.org/quake3/trunk@1203 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/cvar.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c
index 23c014e..95a83e1 100644
--- a/code/qcommon/cvar.c
+++ b/code/qcommon/cvar.c
@@ -497,9 +497,6 @@ Handles variable inspection and changing from the console
*/
qboolean Cvar_Command( void ) {
cvar_t *v;
- char string[ TRUNCATE_LENGTH ];
- char resetString[ TRUNCATE_LENGTH ];
- char latchedString[ TRUNCATE_LENGTH ];
// check variables
v = Cvar_FindVar (Cmd_Argv(0));
@@ -509,25 +506,22 @@ qboolean Cvar_Command( void ) {
// perform a variable print or set
if ( Cmd_Argc() == 1 ) {
- Com_TruncateLongString( string, v->string );
- Com_TruncateLongString( resetString, v->resetString );
Com_Printf ("\"%s\" is:\"%s" S_COLOR_WHITE "\"",
- v->name, string );
+ v->name, v->string );
if ( !( v->flags & CVAR_ROM ) ) {
- if ( !Q_stricmp( string, resetString ) ) {
+ if ( !Q_stricmp( v->string, v->resetString ) ) {
Com_Printf (", the default" );
} else {
Com_Printf (" default:\"%s" S_COLOR_WHITE "\"",
- resetString );
+ v->resetString );
}
}
Com_Printf ("\n");
if ( v->latchedString ) {
- Com_TruncateLongString( latchedString, v->latchedString );
- Com_Printf( "latched: \"%s\"\n", latchedString );
+ Com_Printf( "latched: \"%s\"\n", v->latchedString );
}
return qtrue;
}