Con_Printf ("Cvar_Set: variable %s not found\n", var_name);
return;
}
+ if (var->flags & CVAR_READONLY)
+ {
+ Con_Printf ("Cvar_Set: %s is read-only\n", var_name);
+ return;
+ }
Cvar_SetQuick(var, value);
}
ddef_t *ED_FieldAtOfs(int ofs);
qboolean ED_ParseEpair(edict_t *ent, ddef_t *key, const char *s);
-cvar_t pr_checkextension = {0, "pr_checkextension", "1"};
+cvar_t pr_checkextension = {CVAR_READONLY, "pr_checkextension", "1"};
cvar_t nomonsters = {0, "nomonsters", "0"};
cvar_t gamecfg = {0, "gamecfg", "0"};
cvar_t scratch1 = {0, "scratch1", "0"};