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:
Bill Currie 2001-02-01 08:38:25 +00:00
parent 77555241bd
commit 20a885c174
3 changed files with 29 additions and 16 deletions

View file

@ -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 =

View file

@ -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)) {