From: eihrul Date: Wed, 7 Oct 2009 17:37:48 +0000 (+0000) Subject: fix for noselfshadow entities no culling from shadowmap sides properly X-Git-Tag: xonotic-v0.1.0preview~1312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bacf72bf1fdd627cebdf1bd7cfa57527d1317e30;p=xonotic%2Fdarkplaces.git fix for noselfshadow entities no culling from shadowmap sides properly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9322 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index e2597171..85ec3fec 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -4217,7 +4217,7 @@ void R_DrawRTLight(rtlight_t *rtlight, qboolean visible) for (side = 0;side < 6;side++) if ((receivermask & castermask) & (1 << side)) { R_Shadow_RenderMode_ShadowMap(side, false, size); - for (i = 0;i < numshadowentities_noselfshadow;i++) if (entitysides[shadowentities_noselfshadow - i] && (1 << side)) + for (i = 0;i < numshadowentities_noselfshadow;i++) if (entitysides[shadowentities_noselfshadow - i] & (1 << side)) R_Shadow_DrawEntityShadow(shadowentities[shadowentities_noselfshadow - i]); } }