fix RenderExtraPlayerShadows 2

This commit is contained in:
Fire_Head 2020-04-21 22:53:55 +03:00 committed by GitHub
parent fba4c51f6b
commit 828dc85be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1644,7 +1644,7 @@ CShadows::RenderExtraPlayerShadows(void)
if ( fLightDist < fRadius*0.5f )
nColorStrength = (5*CTimeCycle::GetLightShadowStrength()/8);
else
nColorStrength = int32(CTimeCycle::GetLightShadowStrength() * fMult);
nColorStrength = int32((5*CTimeCycle::GetLightShadowStrength()/8) * fMult);
float fInv = 1.0f / fLightDist;
vecLight.x *= fInv;