mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Don't save unnamed fields.
There will normally be only one unnamed field (if any), and it's always the null field. This will put an eventual end to the "'' is not a field" messages.
This commit is contained in:
parent
cf2377e76f
commit
ac1bf2a158
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ ED_EntityDict (progs_t *pr, edict_t *ed)
|
|||
ddef_t *d = &pr->pr_fielddefs[i];
|
||||
|
||||
name = PR_GetString (pr, d->s_name);
|
||||
if (!name[0])
|
||||
continue; // skip unnamed fields
|
||||
if (name[strlen (name) - 2] == '_')
|
||||
continue; // skip _x, _y, _z vars
|
||||
|
||||
|
|
Loading…
Reference in a new issue