mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 23:57:57 +00:00
engine: cfgscript: don't let scr vars overwrite existing variables
we don't use them for storing settings anyway only for reference in UI
This commit is contained in:
parent
0ba1a8e7bc
commit
f2ab4c0d0e
@ -292,7 +292,8 @@ int CSCR_WriteGameCVars( file_t *cfg, const char *scriptfilename )
|
||||
|
||||
static void CSCR_RegisterVariable( scrvardef_t *var, void *unused )
|
||||
{
|
||||
Cvar_Get( var->name, var->value, var->flags|FCVAR_TEMPORARY, var->desc );
|
||||
if( !Cvar_FindVar( var->name ))
|
||||
Cvar_Get( var->name, var->value, var->flags|FCVAR_TEMPORARY, var->desc );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user