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.
This commit is contained in:
Lioncash 2020-06-14 20:16:52 -04:00
parent 9e3018809f
commit e962d9ba96

View File

@ -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)