From: cloudwalk Date: Thu, 16 Jul 2020 10:48:22 +0000 (+0000) Subject: prvm_edict: For __fullspawndata, set the "start" pointer before '{' is parsed X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85c227bcc2106a2ec522f67fce275bc4f964688b;p=xonotic%2Fdarkplaces.git prvm_edict: For __fullspawndata, set the "start" pointer before '{' is parsed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12827 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index 720bd6d1..53179cdf 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1382,10 +1382,12 @@ void PRVM_ED_LoadFromFile (prvm_prog_t *prog, const char *data) prvm_reuseedicts_always_allow = host.realtime; -// parse ents + // parse ents while (1) { -// parse the opening brace + start = data; + + // parse the opening brace if (!COM_ParseToken_Simple(&data, false, false, true)) break; if (com_token[0] != '{') @@ -1403,7 +1405,7 @@ void PRVM_ED_LoadFromFile (prvm_prog_t *prog, const char *data) // clear it if (ent != prog->edicts) // hack memset (ent->fields.fp, 0, prog->entityfields * sizeof(prvm_vec_t)); - start = data; + data = PRVM_ED_ParseEdict (prog, data, ent); parsed++;