mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 04:30:43 +00:00
init entity info
This commit is contained in:
parent
2e87490f3b
commit
a2e8080a03
1 changed files with 2 additions and 0 deletions
|
@ -293,10 +293,12 @@ convert_qfo (void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
progs.entityfields += pr_type_size[ddef.type];
|
||||||
ddef.ofs = G_INT (&pr, ddef.ofs);
|
ddef.ofs = G_INT (&pr, ddef.ofs);
|
||||||
pr.pr_fielddefs[progs.numfielddefs++] = ddef;
|
pr.pr_fielddefs[progs.numfielddefs++] = ddef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pr.pr_edict_size = progs.entityfields * 4;
|
||||||
|
|
||||||
progs.numfunctions = qfo->num_funcs;
|
progs.numfunctions = qfo->num_funcs;
|
||||||
pr.pr_functions = calloc (qfo->num_funcs, sizeof (dfunction_t));
|
pr.pr_functions = calloc (qfo->num_funcs, sizeof (dfunction_t));
|
||||||
|
|
Loading…
Reference in a new issue