diff --git a/qbsp/outside.cc b/qbsp/outside.cc index f14988d1..aad97cba 100644 --- a/qbsp/outside.cc +++ b/qbsp/outside.cc @@ -608,7 +608,7 @@ bool FillOutside(mapentity_t *entity, node_t *node, const int hullnum) MarkVisibleBrushSides_R(node); - if (options.outsidedebug.value() && hullnum == 0) { + if (options.outsidedebug.value() && (options.target_game->get_hull_sizes().size() == 0 || hullnum == 0)) { fs::path path = options.bsp_path; path.replace_extension(".outside.map"); diff --git a/qbsp/solidbsp.cc b/qbsp/solidbsp.cc index 9e0632da..8731735c 100644 --- a/qbsp/solidbsp.cc +++ b/qbsp/solidbsp.cc @@ -528,11 +528,12 @@ existance by the vertex snapping. #define EDGE_LENGTH 0.2 bool WindingIsTiny(const winding_t &w, double size) { + return w.area() < size; #if 0 if (WindingArea (w) < 1) return true; return false; -#else +#elif 0 int edges = 0; for (size_t i = 0; i < w.size(); i++) { size_t j = (i + 1) % w.size();