mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Create defs for entity fields in the entity space.
This commit is contained in:
parent
e1158a83f0
commit
e68e6d0858
1 changed files with 5 additions and 2 deletions
|
@ -284,8 +284,11 @@ static void
|
|||
init_field_def (def_t *def)
|
||||
{
|
||||
type_t *type = def->type->t.fldptr.type;
|
||||
D_INT (def) = defspace_new_loc (pr.entity_data, type_size (type));
|
||||
reloc_def_field (def, def);
|
||||
def_t *field_def;
|
||||
|
||||
field_def = new_def (def->name, type, pr.entity_data, st_global);
|
||||
D_INT (def) = field_def->offset;
|
||||
reloc_def_field (def, field_def);
|
||||
def->constant = 1;
|
||||
def->nosave = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue