git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5540
d7cf8633-e32d-0410-b094-
e92efae38249
if (!COM_ParseTokenConsole(&text))
return;
+ // check for $cvar
+ // (perhaps use another target buffer?)
+ if (com_token[0] == '$' && com_token[1])
+ {
+ cvar_t *cvar;
+
+ cvar = Cvar_FindVar(&com_token[1]);
+ if (cvar)
+ {
+ strcpy(com_token, cvar->string);
+ }
+ else if( com_token[1] == '$' )
+ {
+ // remove the first $
+ char *pos;
+
+ for( pos = com_token ; *pos ; pos++ )
+ {
+ *pos = *(pos + 1);
+ }
+ }
+ }
+
if (cmd_argc < MAX_ARGS)
{
l = (int)strlen(com_token) + 1;
*datapointer = data;
}
- // check for $cvar
- if (com_token[0] == '$' && com_token[1])
- {
- cvar_t *cvar;
-
- cvar = Cvar_FindVar(&com_token[1]);
- if (cvar)
- {
- strcpy(com_token, cvar->string);
- }
- else if( com_token[1] == '$' )
- {
- // remove the first $
- char *pos;
-
- for( pos = com_token ; *pos ; pos++ )
- {
- *pos = *(pos + 1);
- }
- }
- }
return true;
}
char *vm_sv_extensions =
+"DP_CON_EXPANDCVAR "
+"DP_CON_ALIASPARAMETERS "
"DP_BUTTONCHAT "
"DP_BUTTONUSE "
"DP_CL_LOADSKY "