From 5010dc92fbf49e3997f83a0e2020fde423357e0b Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 12 May 2019 16:39:06 -0600 Subject: [PATCH] light: bounce: also make shadow-casting bmodels bounce (unless they opt-out with _bounce -1) --- light/bounce.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/light/bounce.cc b/light/bounce.cc index 0081c62e..d368a148 100644 --- a/light/bounce.cc +++ b/light/bounce.cc @@ -328,8 +328,7 @@ MakeBounceLights (const globalconfig_t &cfg, const mbsp_t *bsp) { logprint("--- MakeBounceLights ---\n"); - const dmodel_t *model = &bsp->dmodels[0]; make_bounce_lights_args_t args { bsp, &cfg }; //mxd. https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.html - RunThreadsOn(model->firstface, model->firstface + model->numfaces, MakeBounceLightsThread, (void *)&args); + RunThreadsOn(0, bsp->numfaces, MakeBounceLightsThread, (void *)&args); }