fix reported bounce light count
This commit is contained in:
parent
85f25bbc78
commit
ea5e7f5874
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue