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:
Bill Currie 2012-06-10 20:54:40 +09:00
parent cf2377e76f
commit ac1bf2a158

View file

@ -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