From 2b3474b88d65a2dbd831accdc10ac310fc149b59 Mon Sep 17 00:00:00 2001 From: Reki Date: Sun, 23 May 2021 13:26:18 -0400 Subject: [PATCH] Added '_n_' naming scheme to stop globals from being saved --- prvm_edict.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.2