From 49e10926bedabcb3a1cf58b31bf90da212c8d775 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 3 Jul 2019 15:45:54 +0000 Subject: [PATCH] Fix bug with offset capsule collisions. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5486 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/gl_q2bsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/gl_q2bsp.c b/engine/common/gl_q2bsp.c index f60e4988c..7984c4123 100644 --- a/engine/common/gl_q2bsp.c +++ b/engine/common/gl_q2bsp.c @@ -6759,9 +6759,9 @@ static trace_t CM_BoxTrace (model_t *mod, const vec3_t start, const vec3_t end, float ext; trace_shape = shape_iscapsule; //determine the capsule sizes - trace_capsulesize[0] = ((maxs[0]-mins[0]) + (maxs[1]-mins[1]))/4.0; - trace_capsulesize[1] = maxs[2]; - trace_capsulesize[2] = mins[2]; + trace_capsulesize[0] = ((trace_maxs[0]-trace_mins[0]) + (trace_maxs[1]-trace_mins[1]))/4.0; + trace_capsulesize[1] = trace_maxs[2]; + trace_capsulesize[2] = trace_mins[2]; //make sure the mins_z/maxs_z isn't screwed. // if (trace_capsulesize[1]-trace_capsulesize[2] < trace_capsulesize[0]) // trace_capsulesize[1] = trace_capsulesize[0]+trace_capsulesize[2];