summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2020-04-21 21:53:55 +0200
committerGitHub <noreply@github.com>2020-04-21 21:53:55 +0200
commit828dc85be5a7a24bdcf6aaca2eeda1756de63bfd (patch)
treee4f7d6c344b7b2467098c37fad8d6808b6ccf9db /src
parentfix RenderExtraPlayerShadows (diff)
downloadre3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.tar
re3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.tar.gz
re3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.tar.bz2
re3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.tar.lz
re3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.tar.xz
re3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.tar.zst
re3-828dc85be5a7a24bdcf6aaca2eeda1756de63bfd.zip
Diffstat (limited to '')
-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;