From 05786ef279eb99f68c3181cba3aee852cf9f5b23 Mon Sep 17 00:00:00 2001 From: Brian Cullinan Date: Mon, 9 Sep 2024 12:21:01 -0700 Subject: [PATCH] fix for skipping skybox around models in clipmap --- code/qcommon/cm_trace.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/qcommon/cm_trace.c b/code/qcommon/cm_trace.c index f9e6eb760..a2e2d031e 100644 --- a/code/qcommon/cm_trace.c +++ b/code/qcommon/cm_trace.c @@ -495,6 +495,16 @@ static void CM_TraceThroughBrush( traceWork_t *tw, const cbrush_t *brush ) { return; } + for (i = 0; i < brush->numsides; i++) { + side = brush->sides + i; + plane = side->plane; + + if(side->surfaceFlags & SURF_SKY) { + return; + } + + } + c_brush_traces++; getout = qfalse;