]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed CopyEntity builtin, now only copies the vars (not the physics info and such)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Oct 2002 14:23:41 +0000 (14:23 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Oct 2002 14:23:41 +0000 (14:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2572 d7cf8633-e32d-0410-b094-e92efae38249

pr_cmds.c

index 7cf39ca5786d8f7aef93eca4d8bcb4989f292223..c37b456e5adaf9a39ddcba07a16c5bcee78ea48f 100644 (file)
--- 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);
 }
 
 /*