Skip to content

Commit

Permalink
light: bounce: also make shadow-casting bmodels bounce (unless they
Browse files Browse the repository at this point in the history
opt-out with _bounce -1)
  • Loading branch information
ericwa committed May 12, 2019
1 parent ba7bdf8 commit 5010dc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions light/bounce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 5010dc9

Please sign in to comment.