Display sprite shadows in Polymer if dynamic lighting is disabled.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6595 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-26 04:35:29 +00:00
parent a96613f496
commit 535b7c4d66

View file

@ -4216,7 +4216,11 @@ skip:
if (actor[i].flags & SFLAG_NOFLOORSHADOW)
continue;
if (ud.shadows && spritesortcnt < (maxspritesonscreen-2) && getrendermode() != REND_POLYMER)
if (ud.shadows && spritesortcnt < (maxspritesonscreen-2)
#ifdef POLYMER
&& !(getrendermode() == REND_POLYMER && pr_lighting != 0)
#endif
)
{
int const shadowZ = ((sector[sect].lotag & 0xff) > 2 || pSprite->statnum == STAT_PROJECTILE ||
pSprite->statnum == STAT_MISC || pSprite->picnum == DRONE || pSprite->picnum == COMMANDER)