From bacf72bf1fdd627cebdf1bd7cfa57527d1317e30 Mon Sep 17 00:00:00 2001 From: eihrul Date: Wed, 7 Oct 2009 17:37:48 +0000 Subject: [PATCH] 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 --- r_shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- 2.39.2