From ea5e7f58745afe29a07bade50077ff7dfec3df36 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 29 Jul 2022 13:27:31 -0400 Subject: [PATCH] fix reported bounce light count --- light/bounce.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/light/bounce.cc b/light/bounce.cc index 5723da28..a796356f 100644 --- a/light/bounce.cc +++ b/light/bounce.cc @@ -48,7 +48,7 @@ using namespace polylib; mutex bouncelights_lock; static std::forward_list bouncelights; -static size_t lastBounceLightIndex; +static size_t bounceLightCount; static std::unordered_map>> bouncelightsByFacenum; static bool Face_ShouldBounce(const mbsp_t *bsp, const mface_t *face) @@ -98,6 +98,7 @@ inline bouncelight_t &CreateBounceLight(const mface_t *face, const mbsp_t *bsp) bouncelight_t &l = bouncelights.emplace_front(); bouncelightsByFacenum[Face_GetNum(bsp, face)].push_back(l); + bounceLightCount++; return l; } @@ -220,5 +221,5 @@ void MakeBounceLights(const settings::worldspawn_keys &cfg, const mbsp_t *bsp) logging::parallel_for_each(bsp->dfaces, [&](const mface_t &face) { MakeBounceLightsThread(cfg, bsp, face); }); - logging::print("{} bounce lights created\n", lastBounceLightIndex); + logging::print("{} bounce lights created\n", bounceLightCount); }