mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 07:11:36 +00:00
IOQ3 commit 1919
This commit is contained in:
parent
27355afd3b
commit
d359ce715f
1 changed files with 6 additions and 5 deletions
|
@ -451,7 +451,6 @@ be after execing the config and default.
|
|||
void Com_StartupVariable( const char *match ) {
|
||||
int i;
|
||||
char *s;
|
||||
cvar_t *cv;
|
||||
|
||||
for (i=0 ; i < com_numConsoleLines ; i++) {
|
||||
Cmd_TokenizeString( com_consoleLines[i] );
|
||||
|
@ -460,11 +459,13 @@ void Com_StartupVariable( const char *match ) {
|
|||
}
|
||||
|
||||
s = Cmd_Argv(1);
|
||||
if ( !match || !strcmp( s, match ) ) {
|
||||
|
||||
if(!match || !strcmp(s, match))
|
||||
{
|
||||
if(Cvar_Flags(s) == CVAR_NONEXISTENT)
|
||||
Cvar_Get(s, Cmd_Argv(2), CVAR_USER_CREATED);
|
||||
else
|
||||
Cvar_Set( s, Cmd_Argv(2) );
|
||||
cv = Cvar_Get( s, "", 0 );
|
||||
cv->flags |= CVAR_USER_CREATED;
|
||||
// com_consoleLines[i] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue