From 57cb03dcd5a8f28e32cbffa9bcad8674f0ff61eb Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 28 Oct 2002 14:23:41 +0000 Subject: [PATCH] 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 --- pr_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* -- 2.39.2