From: havoc Date: Sat, 16 Nov 2002 01:00:26 +0000 (+0000) Subject: fixed fiends teleporting when they check if a jump is a good one or not X-Git-Tag: RELEASE_0_2_0_RC1~69 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13c1d552ff7381495a054f253585471c4e7f4d56;p=xonotic%2Fdarkplaces.git fixed fiends teleporting when they check if a jump is a good one or not git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2628 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_phys.c b/sv_phys.c index 0e465d1e..2bb5b439 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -1433,11 +1433,16 @@ trace_t SV_Trace_Toss (edict_t *tossent, edict_t *ignore) float gravity, savesolid; vec3_t move, end; edict_t tempent, *tent; + entvars_t vars; eval_t *val; trace_t trace; - memcpy(&tempent, tossent, sizeof(edict_t)); + // copy the vars over + memcpy(&vars, tossent->v, sizeof(entvars_t)); + // set up the temp entity to point to the copied vars tent = &tempent; + tent->v = &vars; + savesolid = tossent->v->solid; tossent->v->solid = SOLID_NOT;