1
0
Fork 0
forked from fte/fteqw

Small cleanup

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1950 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-11 18:06:18 +00:00
parent e3683b17c1
commit 2120d9bba8

View file

@ -149,20 +149,11 @@ void CLQ2_ClipMoveToEntities ( vec3_t start, vec3_t mins, vec3_t maxs, vec3_t en
mins, maxs, MASK_PLAYERSOLID, mins, maxs, MASK_PLAYERSOLID,
ent->origin, angles); ent->origin, angles);
if (trace.allsolid || trace.startsolid || if (trace.allsolid || trace.startsolid || trace.fraction < tr->fraction)
trace.fraction < tr->fraction)
{ {
trace.ent = (struct edict_s *)ent; trace.ent = (struct edict_s *)ent;
if (tr->startsolid) *tr = trace;
{
*tr = trace;
tr->startsolid = true;
}
else
*tr = trace;
} }
else if (trace.startsolid)
tr->startsolid = true;
} }
} }