From 638f25094922dbcfb47c1e20125dbbdd5ddf7390 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 6 Feb 2021 17:24:57 -0700 Subject: [PATCH] decompile: remove some log spam, change copy to const ref --- bsputil/decompile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsputil/decompile.cpp b/bsputil/decompile.cpp index 10e9ecd3..bbcf568b 100644 --- a/bsputil/decompile.cpp +++ b/bsputil/decompile.cpp @@ -372,7 +372,7 @@ BuildDecompFacesOnPlane(const mbsp_t *bsp, const decomp_plane_t& plane) const double dp = qv::dot(plane.normal, decompFace.normal()); if (dp < 0.9) { - printf("face on back %g, discarding\n", dp); + //printf("face on back %g, discarding\n", dp); continue; } @@ -746,7 +746,7 @@ AddMapBoundsToStack(std::vector* planestack, const mbsp_t *bsp, } static void -DecompileEntity(const mbsp_t *bsp, FILE* file, entdict_t dict, bool isWorld) +DecompileEntity(const mbsp_t *bsp, FILE* file, const entdict_t& dict, bool isWorld) { // we use -1 to indicate it's not a brush model int modelNum = -1;