From 02be89079fb29820c1b7fab82e0b8805db3de3b5 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 4 Jun 2024 22:41:55 -0600 Subject: [PATCH] light: fix test failures from refactoring --- light/ltface.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/light/ltface.cc b/light/ltface.cc index e4f1cbb8..df1760f7 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -893,7 +893,10 @@ static float GetLightValue(const settings::worldspawn_keys &cfg, const light_t * static float GetLightValueWithAngle(const settings::worldspawn_keys &cfg, const light_t *entity, const qvec3f &surfnorm, bool use_surfnorm, const qvec3f &surfpointToLightDir, float dist, bool twosided) { - float value = GetLightValue(cfg, entity, dist); + float value = GetLightValueWithAngle(cfg, entity->formula.value(), entity->light.value(), + entity->falloff.value(), entity->atten.value(), + entity->bleed.value(), entity->anglescale.value(), surfnorm, + use_surfnorm, surfpointToLightDir, dist, twosided, LF_SCALE); /* Check spotlight cone */ float spotscale = 1;