From e962d9ba9689be947311b9205e183e38c136a39a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Jun 2020 20:16:52 -0400 Subject: [PATCH] CLight: Correct lack of assignment in SetSpotCutoff() Brought this up with Antidote and was told that this is likely what was intended to be done. --- src/Core/Resource/CLight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Resource/CLight.cpp b/src/Core/Resource/CLight.cpp index fff46caf..bc965ac8 100644 --- a/src/Core/Resource/CLight.cpp +++ b/src/Core/Resource/CLight.cpp @@ -126,7 +126,7 @@ void CLight::SetColor(const CColor& rkColor) void CLight::SetSpotCutoff(float Cutoff) { mSpotCutoff = Cutoff * 0.5f; - CalculateSpotAngleAtten(); + mAngleAttenCoefficients = CalculateSpotAngleAtten(); } void CLight::SetDistAtten(float DistCoefA, float DistCoefB, float DistCoefC)