CLight: Combine std::max calls

This commit is contained in:
Lioncash 2020-06-22 03:19:13 -04:00
parent 4c03054109
commit 15f151e798
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ float CLight::CalculateIntensity() const
if (mType == ELightType::Custom)
coef = mAngleAttenCoefficients.X;
return coef * std::max(mColor.R, std::max(mColor.G, mColor.B));
return coef * std::max({mColor.R, mColor.G, mColor.B});
#if 0
// Get the color component with the greatest numeric value
float Greatest = (mColor.G >= mColor.B) ? mColor.G : mColor.B;