git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4751
d7cf8633-e32d-0410-b094-
e92efae38249
// FIXME: make these go away?
#define PRVM_E_FLOAT(e,o) (((float*)e->v)[o])
-//#define PRVM_E_INT(e,o) (((int*)e->v)[o])
+#define PRVM_E_INT(e,o) (((int*)e->v)[o])
//#define PRVM_E_VECTOR(e,o) (&((float*)e->v)[o])
#define PRVM_E_STRING(e,o) (PRVM_GetString(*(string_t *)&((float*)e->v)[o]))
if (strcmp(t,s))
continue;
- PRVM_E_FLOAT(ent,chain_of) = PRVM_NUM_FOR_EDICT(chain);
+ PRVM_E_INT(ent,chain_of) = PRVM_NUM_FOR_EDICT(chain);
chain = ent;
}
prog->xfunction->builtinsprofile++;
if (ent->p.e->free)
continue;
- if (E_FLOAT(ent,f) != s)
+ if (PRVM_E_FLOAT(ent,f) != s)
continue;
- PRVM_E_FLOAT(ent,chain_of) = PRVM_NUM_FOR_EDICT(chain);
+ PRVM_E_INT(ent,chain_of) = PRVM_EDICT_TO_PROG(chain);
chain = ent;
}