mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +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)
|
init_field_def (def_t *def)
|
||||||
{
|
{
|
||||||
type_t *type = def->type->t.fldptr.type;
|
type_t *type = def->type->t.fldptr.type;
|
||||||
D_INT (def) = defspace_new_loc (pr.entity_data, type_size (type));
|
def_t *field_def;
|
||||||
reloc_def_field (def, 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->constant = 1;
|
||||||
def->nosave = 1;
|
def->nosave = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue