Fix cstat 1024 with Polymer

git-svn-id: https://svn.eduke32.com/eduke32@5407 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-10-23 23:00:25 +00:00
parent f22dbc6fdb
commit ad8da7be99

View file

@ -9894,7 +9894,11 @@ killsprite:
while (i)
{
i--;
if (tspriteptr[i] != NULL && (tspriteptr[i]->cstat & 1024) != 1024)
if (tspriteptr[i] != NULL && ((tspriteptr[i]->cstat & 1024) != 1024
#ifdef POLYMER
|| getrendermode() == REND_POLYMER
#endif
))
{
vec2f_t spr;
const tspritetype *tspr = tspriteptr[i];
@ -9966,6 +9970,10 @@ killsprite:
{
debugmask_add(i | 32768, tspr->owner);
drawsprite(i);
#ifdef POLYMER
if (tspr->cstat & 1024 && getrendermode() == REND_POLYMER)
continue;
#endif
tspriteptr[i] = NULL;
}
}
@ -9981,7 +9989,11 @@ killsprite:
while (i)
{
i--;
if (tspriteptr[i] != NULL && (tspriteptr[i]->cstat & 1024) != 1024)
if (tspriteptr[i] != NULL && ((tspriteptr[i]->cstat & 1024) != 1024
#ifdef POLYMER
|| getrendermode() == REND_POLYMER
#endif
))
{
debugmask_add(i | 32768, tspriteptr[i]->owner);
drawsprite(i);