]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix for noselfshadow entities no culling from shadowmap sides properly
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Oct 2009 17:37:48 +0000 (17:37 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Oct 2009 17:37:48 +0000 (17:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9322 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index e2597171349a829ce523fa6442ba78bc27a1ffff..85ec3fec910937d99d02e52cd415af6c5e72ba74 100644 (file)
@@ -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]);
                        }
                }