summaryrefslogtreecommitdiff
path: root/src/render/Shadows.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2020-04-21 22:53:55 +0300
committerGitHub <noreply@github.com>2020-04-21 22:53:55 +0300
commit828dc85be5a7a24bdcf6aaca2eeda1756de63bfd (patch)
treee4f7d6c344b7b2467098c37fad8d6808b6ccf9db /src/render/Shadows.cpp
parentfba4c51f6b54bda7f693672db3343b113218f781 (diff)
fix RenderExtraPlayerShadows 2
Diffstat (limited to 'src/render/Shadows.cpp')
-rw-r--r--src/render/Shadows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp
index f14b6ec1..d5970ebe 100644
--- a/src/render/Shadows.cpp
+++ b/src/render/Shadows.cpp
@@ -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;