From 5f00d2cb3c913f36f90b0bfe7c14408cb9d9a0e8 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Mon, 27 May 2002 06:48:03 +0000 Subject: [PATCH] make bbox collisions work again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1873 d7cf8633-e32d-0410-b094-e92efae38249 --- collision.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collision.c b/collision.c index 404feb68..111eb6d3 100644 --- a/collision.c +++ b/collision.c @@ -415,8 +415,8 @@ void Collision_ClipTrace (trace_t *trace, const void *cent, const model_t *cmode rhc.hull = HullForBBoxEntity (corigin, cmins, cmaxs, mins, maxs, offset); // trace a line through the generated clipping hull - VectorCopy(start, rhc.start); - VectorCopy(end, rhc.end); + VectorSubtract(start, offset, rhc.start); + VectorSubtract(end, offset, rhc.end); VectorCopy(rhc.end, rhc.trace->endpos); VectorSubtract(rhc.end, rhc.start, rhc.dist); if (DotProduct(rhc.dist, rhc.dist) > 0.00001) -- 2.39.2