light: fix lightgrid extra condition

This commit is contained in:
Eric Wasylishen 2023-03-04 14:06:31 -07:00
parent f0749450d3
commit e020bf1f27
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ void LightGrid(bspdata_t *bspdata)
bool occluded;
lightgrid_samples_t samples;
if (!light_options.extra.value()) {
if (light_options.extra.value() == 1) {
std::tie(samples, occluded) = FixPointAndCalcLightgrid(&bsp, world_point);
} else {
// do a 2x2 grid, centered around world_point, at +/- (grid_dist / 3)