mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
make the edict macros consistent in return type
This commit is contained in:
parent
a9678f1c06
commit
59498cd5e7
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ void ED_EntityParseFunction (progs_t *pr);
|
|||
#define PR_edicts(p) ((byte *) *(p)->edicts)
|
||||
|
||||
#define NEXT_EDICT(p,e) ((edict_t *) ((byte *) e + (p)->pr_edict_size))
|
||||
#define EDICT_TO_PROG(p,e) ((long) ((byte *) (e) - PR_edicts (p)))
|
||||
#define EDICT_TO_PROG(p,e) ((pr_int_t)(intptr_t)((byte *)(e) - PR_edicts (p)))
|
||||
#define PROG_TO_EDICT(p,e) ((edict_t *) (PR_edicts (p) + (e)))
|
||||
#define NUM_FOR_BAD_EDICT(p,e) (EDICT_TO_PROG (p, e) / (p)->pr_edict_size)
|
||||
#ifndef PR_PARANOID_PROGS
|
||||
|
|
Loading…
Reference in a new issue