From: Reki Date: Sun, 23 May 2021 17:26:18 +0000 (-0400) Subject: Added '_n_' naming scheme to stop globals from being saved X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b3474b88d65a2dbd831accdc10ac310fc149b59;p=xonotic%2Fdarkplaces.git Added '_n_' naming scheme to stop globals from being saved --- diff --git a/prvm_edict.c b/prvm_edict.c index 8f33cf49..84321cb4 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -911,6 +911,10 @@ void PRVM_ED_WriteGlobals (prvm_prog_t *prog, qfile_t *f) continue; name = PRVM_GetString(prog, def->s_name); + + // terrible hack to make globals ending in _n not save + if(strlen(name) > 2 && name[0] == '_' && name[1] == 'n' && name[2] == '_') + continue; if(developer_entityparsing.integer) Con_Printf("PRVM_ED_WriteGlobals: at global %s\n", name);