fix reported bounce light count

This commit is contained in:
Jonathan 2022-07-29 13:27:31 -04:00
parent 85f25bbc78
commit ea5e7f5874
1 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ using namespace polylib;
mutex bouncelights_lock;
static std::forward_list<bouncelight_t> bouncelights;
static size_t lastBounceLightIndex;
static size_t bounceLightCount;
static std::unordered_map<size_t, std::vector<std::reference_wrapper<bouncelight_t>>> 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);
}