summaryrefslogtreecommitdiff
path: root/src/qcommon/cm_patch.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-12-20 00:53:13 +0000
committerTim Angus <tim@ngus.net>2005-12-20 00:53:13 +0000
commit611eb5ee8a55d5aa473c48f8f9436a01e3f0cdb7 (patch)
treee2c52d2d0c43e5343df017c7578fb99275a8bfed /src/qcommon/cm_patch.c
parent65b823bf367034c204d370a6a73965a196072153 (diff)
* New collision type, for improved light flares
Diffstat (limited to 'src/qcommon/cm_patch.c')
-rw-r--r--src/qcommon/cm_patch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qcommon/cm_patch.c b/src/qcommon/cm_patch.c
index 806021da..fa0ff55a 100644
--- a/src/qcommon/cm_patch.c
+++ b/src/qcommon/cm_patch.c
@@ -1400,7 +1400,7 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s *
planes = &pc->planes[ facet->surfacePlane ];
VectorCopy(planes->plane, plane);
plane[3] = planes->plane[3];
- if ( tw->sphere.use ) {
+ if ( tw->type == TT_CAPSULE ) {
// adjust the plane distance apropriately for radius
plane[3] += tw->sphere.radius;
@@ -1439,7 +1439,7 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s *
VectorCopy(planes->plane, plane);
plane[3] = planes->plane[3];
}
- if ( tw->sphere.use ) {
+ if ( tw->type == TT_CAPSULE ) {
// adjust the plane distance apropriately for radius
plane[3] += tw->sphere.radius;
@@ -1528,7 +1528,7 @@ qboolean CM_PositionTestInPatchCollide( traceWork_t *tw, const struct patchColli
planes = &pc->planes[ facet->surfacePlane ];
VectorCopy(planes->plane, plane);
plane[3] = planes->plane[3];
- if ( tw->sphere.use ) {
+ if ( tw->type == TT_CAPSULE ) {
// adjust the plane distance apropriately for radius
plane[3] += tw->sphere.radius;
@@ -1561,7 +1561,7 @@ qboolean CM_PositionTestInPatchCollide( traceWork_t *tw, const struct patchColli
VectorCopy(planes->plane, plane);
plane[3] = planes->plane[3];
}
- if ( tw->sphere.use ) {
+ if ( tw->type == TT_CAPSULE ) {
// adjust the plane distance apropriately for radius
plane[3] += tw->sphere.radius;