From 18c741a9607b63dbfab68edbc8fec7f2df451b0a Mon Sep 17 00:00:00 2001 From: Garux Date: Wed, 8 Sep 2021 19:45:04 +0300 Subject: [PATCH] remove unused side_t field --- tools/quake3/q3map2/brush.cpp | 25 ++----------------------- tools/quake3/q3map2/q3map2.h | 1 - 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/tools/quake3/q3map2/brush.cpp b/tools/quake3/q3map2/brush.cpp index 5d021494..b2b94ff6 100644 --- a/tools/quake3/q3map2/brush.cpp +++ b/tools/quake3/q3map2/brush.cpp @@ -499,18 +499,7 @@ void FilterDetailBrushesIntoTree( entity_t *e, tree_t& tree ){ continue; } c_unique++; - const int r = FilterBrushIntoTree_r( brush_t( b ), tree.headnode ); - c_clusters += r; - - /* mark all sides as visible so drawsurfs are created */ - if ( r ) { - for ( side_t& side : b.sides ) - { - if ( !side.winding.empty() ) { - side.visible = true; - } - } - } + c_clusters += FilterBrushIntoTree_r( brush_t( b ), tree.headnode ); } /* emit some statistics */ @@ -535,17 +524,7 @@ void FilterStructuralBrushesIntoTree( entity_t *e, tree_t& tree ) { continue; } c_unique++; - const int r = FilterBrushIntoTree_r( brush_t( b ), tree.headnode ); - c_clusters += r; - - // mark all sides as visible so drawsurfs are created - if ( r ) { - for ( side_t& side : b.sides ) { - if ( !side.winding.empty() ) { - side.visible = true; - } - } - } + c_clusters += FilterBrushIntoTree_r( brush_t( b ), tree.headnode ); } /* emit some statistics */ diff --git a/tools/quake3/q3map2/q3map2.h b/tools/quake3/q3map2/q3map2.h index 8bc1c02b..4a1eb200 100644 --- a/tools/quake3/q3map2/q3map2.h +++ b/tools/quake3/q3map2/q3map2.h @@ -752,7 +752,6 @@ struct side_t int compileFlags; /* from shaderInfo */ int value; /* from shaderInfo */ - bool visible; /* choose visible planes first */ bool bevel; /* don't ever use for bsp splitting, and don't bother making windings for it */ bool culled; /* ydnar: face culling */ };