1
0
Fork 0
forked from fte/fteqw

Whoops, lets fix that bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1957 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-12 04:46:16 +00:00
parent 09ef35578b
commit 075988465b

View file

@ -1214,8 +1214,10 @@ static void cs_settracevars(trace_t *tr)
VectorCopy (tr->endpos, csqcg.trace_endpos);
VectorCopy (tr->plane.normal, csqcg.trace_plane_normal);
*csqcg.trace_plane_dist = tr->plane.dist;
*csqcg.trace_surfaceflags = tr->surface?tr->surface->flags:0;
*csqcg.trace_endcontents = tr->contents;
if (csqcg.trace_surfaceflags)
*csqcg.trace_surfaceflags = tr->surface?tr->surface->flags:0;
if (csqcg.trace_endcontents)
*csqcg.trace_endcontents = tr->contents;
if (tr->ent)
*csqcg.trace_ent = EDICT_TO_PROG(csqcprogs, (void*)tr->ent);
else