From: havoc Date: Mon, 28 Oct 2002 14:23:41 +0000 (+0000) Subject: fixed CopyEntity builtin, now only copies the vars (not the physics info and such) X-Git-Tag: RELEASE_0_2_0_RC1~107 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=57cb03dcd5a8f28e32cbffa9bcad8674f0ff61eb;p=xonotic%2Fdarkplaces.git fixed CopyEntity builtin, now only copies the vars (not the physics info and such) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2572 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/pr_cmds.c b/pr_cmds.c index 7cf39ca5..c37b456e 100644 --- a/pr_cmds.c +++ b/pr_cmds.c @@ -2022,7 +2022,7 @@ void PF_copyentity (void) edict_t *in, *out; in = G_EDICT(OFS_PARM0); out = G_EDICT(OFS_PARM1); - memcpy(out, in, pr_edict_size); + memcpy(&out->v, &in->v, progs->entityfields * 4); } /*