diff options
Diffstat (limited to 'code/qcommon/cm_patch.c')
-rw-r--r-- | code/qcommon/cm_patch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/code/qcommon/cm_patch.c b/code/qcommon/cm_patch.c index 88e3697..176aac1 100644 --- a/code/qcommon/cm_patch.c +++ b/code/qcommon/cm_patch.c @@ -1386,6 +1386,11 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s * static cvar_t *cv; #endif //BSPC + if ( !BoundsIntersect( tw->bounds[0], tw->bounds[1], + pc->bounds[0], pc->bounds[1] ) ) { + return; + } + if (tw->isPoint) { CM_TracePointThroughPatchCollide( tw, pc ); return; |