mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-23 00:10:50 +00:00
white space
This commit is contained in:
parent
00b9b23076
commit
e9ed2d1a40
1 changed files with 11 additions and 11 deletions
|
@ -109,18 +109,18 @@ int NUM_FOR_EDICT(progs_t *pr, edict_t *e);
|
|||
|
||||
//============================================================================
|
||||
|
||||
#define G_FLOAT(p,o) ((p)->pr_globals[o])
|
||||
#define G_INT(p,o) (*(int *)&(p)->pr_globals[o])
|
||||
#define G_EDICT(p,o) ((edict_t *)((byte *)*(p)->edicts+ *(int *)&(p)->pr_globals[o]))
|
||||
#define G_EDICTNUM(p,o) NUM_FOR_EDICT(p,G_EDICT(p, o))
|
||||
#define G_VECTOR(p,o) (&(p)->pr_globals[o])
|
||||
#define G_STRING(p,o) (PR_GetString(pr,*(string_t *)&(p)->pr_globals[o]))
|
||||
#define G_FUNCTION(p,o) (*(func_t *)&(p)->pr_globals[o])
|
||||
#define G_FLOAT(p,o) ((p)->pr_globals[o])
|
||||
#define G_INT(p,o) (*(int *)&(p)->pr_globals[o])
|
||||
#define G_EDICT(p,o) ((edict_t *)((byte *)*(p)->edicts+ *(int *)&(p)->pr_globals[o]))
|
||||
#define G_EDICTNUM(p,o) NUM_FOR_EDICT(p,G_EDICT(p, o))
|
||||
#define G_VECTOR(p,o) (&(p)->pr_globals[o])
|
||||
#define G_STRING(p,o) (PR_GetString(pr,*(string_t *)&(p)->pr_globals[o]))
|
||||
#define G_FUNCTION(p,o) (*(func_t *)&(p)->pr_globals[o])
|
||||
|
||||
#define E_FLOAT(e,o) (((float*)&e->v)[o])
|
||||
#define E_INT(e,o) (*(int *)&((float*)&e->v)[o])
|
||||
#define E_VECTOR(e,o) (&((float*)&e->v)[o])
|
||||
#define E_STRING(e,o) (PR_GetString(pr,*(string_t *)&((float*)&e->v)[o]))
|
||||
#define E_FLOAT(e,o) (((float*)&e->v)[o])
|
||||
#define E_INT(e,o) (*(int *)&((float*)&e->v)[o])
|
||||
#define E_VECTOR(e,o) (&((float*)&e->v)[o])
|
||||
#define E_STRING(e,o) (PR_GetString(pr,*(string_t *)&((float*)&e->v)[o]))
|
||||
|
||||
extern int type_size[8];
|
||||
|
||||
|
|
Loading…
Reference in a new issue