Skip to content

Commit

Permalink
fix for skipping skybox around models in clipmap
Browse files Browse the repository at this point in the history
  • Loading branch information
briancullinan2 committed Sep 9, 2024
1 parent 8635fd5 commit 05786ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/qcommon/cm_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 05786ef

Please sign in to comment.