diff --git a/qbsp/brush.cc b/qbsp/brush.cc index b88cdafd..89088a10 100644 --- a/qbsp/brush.cc +++ b/qbsp/brush.cc @@ -309,8 +309,6 @@ AddBrushPlane */ static bool AddBrushPlane(hullbrush_t &hullbrush, const qbsp_plane_t &plane) { - vec_t len = qv::length(plane.get_normal()); - for (auto &s : hullbrush.brush.sides) { if (qv::epsilonEqual(s.get_plane(), plane)) { return false; @@ -461,8 +459,6 @@ ExpandBrush */ static void ExpandBrush(hullbrush_t &hullbrush, const aabb3d &hull_size) { - size_t total_original_sides = hullbrush.brush.sides.size(); - // create all the hull points for (auto &f : hullbrush.brush.sides) { for (auto &pt : f.w) { @@ -600,7 +596,7 @@ std::optional LoadBrush(const mapentity_t &src, mapbrush_t &mapbrush } #else - if (!CreateBrushWindings(brush, mapbrush.is_hint)) { + if (!CreateBrushWindings(brush)) { return std::nullopt; } diff --git a/qbsp/map.cc b/qbsp/map.cc index 44ce10f8..3928cc8d 100644 --- a/qbsp/map.cc +++ b/qbsp/map.cc @@ -1837,9 +1837,7 @@ static bool AddBrushPlane(map_hullbrush_t &hullbrush, const qbsp_plane_t &plane, // fixme: why did we need to store all this stuff again, isn't // it in texinfo? s.raw_info = hullbrush.brush.faces[0].raw_info; - s.flags = hullbrush.brush.faces[0].flags; s.texname = hullbrush.brush.faces[0].texname; - s.value = hullbrush.brush.faces[0].value; s.bevel = true; return true; } @@ -1991,8 +1989,6 @@ ExpandBrush */ static void ExpandBrush(map_hullbrush_t &hullbrush, const aabb3d &hull_size) { - size_t total_original_sides = hullbrush.brush.faces.size(); - // create all the hull points for (auto &f : hullbrush.brush.faces) { for (auto &pt : f.winding) {