From 5ebf3244c7061d4da4ad49d4cd913ed625de8ed6 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 23 Jun 2012 04:54:58 +0000 Subject: [PATCH] fix for hip1m1 gold key door - favor earlier entity result in cliptrace combining (use of < operator preferred over <=) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11831 d7cf8633-e32d-0410-b094-e92efae38249 --- collision.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collision.c b/collision.c index af0758f5..264eddb3 100644 --- a/collision.c +++ b/collision.c @@ -1954,7 +1954,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) && (VectorLength2(trace->plane.normal) > 0)) + if ((trace->realfraction < cliptrace->realfraction) && (VectorLength2(trace->plane.normal) > 0)) { cliptrace->fraction = trace->fraction; cliptrace->realfraction = trace->realfraction; -- 2.39.2