mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
allow .imm fields (need a better test, I think)
This commit is contained in:
parent
50dc955652
commit
0b61dae402
1 changed files with 6 additions and 4 deletions
|
@ -330,11 +330,13 @@ process_field (qfo_def_t *def)
|
|||
qfo_def_t *field_def;
|
||||
pr_type_t *var = DATA (def->ofs);
|
||||
|
||||
if (strcmp (STRING (def->name), ".imm")) { //FIXME better test
|
||||
if ((_d = Hash_Find (field_defs, STRING (def->name)))) {
|
||||
field_def = deref_def (_d, &fields);
|
||||
def_error (def, "%s redefined", STRING (def->name));
|
||||
def_error (field_def, "previous definition");
|
||||
}
|
||||
}
|
||||
defgroup_add_defs (&fields, def, 1);
|
||||
field_def = fields.defs + fields.num_defs - 1;
|
||||
field_def->ofs = var->integer_var + entity_base;
|
||||
|
|
Loading…
Reference in a new issue