From: divverent Date: Thu, 26 Feb 2009 06:26:22 +0000 (+0000) Subject: use trace_plane_normal to check whether the trace succeeded X-Git-Tag: xonotic-v0.1.0preview~1834 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=9a48353dc19ae3bf696fabbfa0388e200fb5acfc use trace_plane_normal to check whether the trace succeeded git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8762 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/collision.c b/collision.c index b9399d6a..0758a719 100644 --- a/collision.c +++ b/collision.c @@ -1541,7 +1541,7 @@ void Collision_CombineTraces(trace_t *cliptrace, const trace_t *trace, void *tou // cliptrace->inopen = true; if (trace->inwater) cliptrace->inwater = true; - if ((trace->realfraction <= cliptrace->realfraction) && (trace->realfraction != 1)) + if ((trace->realfraction <= cliptrace->realfraction) && (VectorLength2(trace->plane->normal) > 0)) { cliptrace->fraction = trace->fraction; cliptrace->realfraction = trace->realfraction;