mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
- add a NUM_FOR_BAD_EDICT function, which doesn't care if it's a bad
value - switch some prints over NUM_FOR_BAD_EDICT - change NUM_FOR_EDICT to call PR_RunError on error, instead of PR_Error. That was it prints out a backtrace. (I did it in reverse order ;)
This commit is contained in:
parent
a159e852e6
commit
07b0d91900
3 changed files with 19 additions and 7 deletions
|
@ -107,6 +107,7 @@ int PR_AccessField (progs_t *pr, const char *name, etype_t type,
|
|||
|
||||
edict_t *EDICT_NUM(progs_t *pr, int n);
|
||||
int NUM_FOR_EDICT(progs_t *pr, edict_t *e);
|
||||
int NUM_FOR_BAD_EDICT(progs_t *pr, edict_t *e);
|
||||
|
||||
#define NEXT_EDICT(p,e) ((edict_t *)( (byte *)e + (p)->pr_edict_size))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue