mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
clean up the #define mess in progs.h. While I doubt this will fix the null
function crashes, at least the code is easier to read.
This commit is contained in:
parent
77555241bd
commit
20a885c174
3 changed files with 29 additions and 16 deletions
|
@ -949,7 +949,7 @@ PR_LoadProgs (progs_t *pr, char *progsname)
|
|||
pr->num_prstr = 0;
|
||||
|
||||
pr->pr_global_struct = (globalvars_t *) ((byte *) pr->progs + pr->progs->ofs_globals);
|
||||
pr->pr_globals = (float *) pr->pr_global_struct;
|
||||
pr->pr_globals = (pr_type_t *) pr->pr_global_struct;
|
||||
|
||||
pr->pr_edict_size =
|
||||
|
||||
|
|
|
@ -890,7 +890,7 @@ PF_Find (progs_t *pr)
|
|||
ed = EDICT_NUM (pr, e);
|
||||
if (ed->free)
|
||||
continue;
|
||||
t = E_STRING (ed, f);
|
||||
t = E_STRING (pr, ed, f);
|
||||
if (!t)
|
||||
continue;
|
||||
if (!strcmp (t, s)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue