Browse Source

engine: cfgscript: don't let scr vars overwrite existing variables

we don't use them for storing settings anyway
only for reference in UI
pull/2/head
Alibek Omarov 4 years ago
parent
commit
f2ab4c0d0e
  1. 1
      engine/common/cfgscript.c

1
engine/common/cfgscript.c

@ -292,6 +292,7 @@ int CSCR_WriteGameCVars( file_t *cfg, const char *scriptfilename ) @@ -292,6 +292,7 @@ int CSCR_WriteGameCVars( file_t *cfg, const char *scriptfilename )
static void CSCR_RegisterVariable( scrvardef_t *var, void *unused )
{
if( !Cvar_FindVar( var->name ))
Cvar_Get( var->name, var->value, var->flags|FCVAR_TEMPORARY, var->desc );
}

Loading…
Cancel
Save