From: cloudwalk Date: Sun, 8 Nov 2020 06:25:14 +0000 (+0000) Subject: prvm_edict: Link all edicts to the world when loaded from file. Fixes issue with... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f51adc262a478e81da15ee56b080eeb3a4dbd4c9;p=xonotic%2Fdarkplaces.git 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 --- 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;