Patch from Spike, change droptofloor() to take entity number as argument instead to comply with QVM mods.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3020 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2008-06-29 11:17:46 +00:00
parent eec8fcb78b
commit 8278f53e15

View file

@ -735,7 +735,7 @@ static int syscallqvm (void *offset, unsigned int mask, int fn, const int *arg)
trace_t trace;
extern cvar_t pr_droptofloorunits;
ent = PROG_TO_EDICT(svprogfuncs, pr_global_struct->self);
ent = EDICT_NUM(svprogfuncs, arg[0]);
VectorCopy (ent->v->origin, end);
if (pr_droptofloorunits.value > 0)