Skip to content
This repository has been archived by the owner. It is now read-only.

fix RenderExtraPlayerShadows #483

Merged
merged 2 commits into from Apr 21, 2020
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

Prev
fix RenderExtraPlayerShadows 2
  • Loading branch information
Fire-Head committed Apr 21, 2020
commit 828dc85be5a7a24bdcf6aaca2eeda1756de63bfd
@@ -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;