From f51adc262a478e81da15ee56b080eeb3a4dbd4c9 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 8 Nov 2020 06:25:14 +0000 Subject: [PATCH] prvm_edict: Link all edicts to the world when loaded from file. Fixes issue with some entities being spawned at world origin in Xonotic. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13041 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_edict.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prvm_edict.c b/prvm_edict.c index 5efd5ed6..48e2018c 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1536,6 +1536,8 @@ void PRVM_ED_LoadFromFile (prvm_prog_t *prog, const char *data) continue; } + SV_LinkEdict(ent); + if(!PRVM_ED_CallSpawnFunction(prog, ent, data, start)) continue; -- 2.39.2