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); }