Rednukem: Fix tspr->clipdist bits

This commit is contained in:
Evan Ramos 2020-01-02 22:41:52 -06:00 committed by Christoph Oelckers
parent 148c8770e9
commit a6c2641c20
1 changed files with 5 additions and 5 deletions

View File

@ -4831,7 +4831,7 @@ default_case1:
if (!RR && pSprite->picnum == NATURALLIGHTNING)
{
t->shade = -127;
t->cstat |= 8192;
t->clipdist |= TSPR_FLAGS_NO_SHADOW;
}
if (t->statnum == TSPR_TEMP)
@ -5283,7 +5283,7 @@ default_case1:
if ((!g_netServer && ud.multimode < 2) || ((g_netServer || ud.multimode > 1) && playerNum == screenpeek))
{
if (videoGetRenderMode() == REND_POLYMER)
t->cstat |= 16384;
t->clipdist |= TSPR_FLAGS_INVISIBLE_WITH_SHADOW;
else
{
t->owner = -1;
@ -5681,7 +5681,7 @@ rrcoolexplosion1:
else if (RR && t->picnum == FIRELASER)
t->picnum = FIRELASER+(((int32_t) totalclock>>2)&5);
t->shade = -127;
t->cstat |= 8192+1024;
t->clipdist |= TSPR_FLAGS_DRAW_LAST | TSPR_FLAGS_NO_SHADOW;
break;
case UFOBEAM__STATICRR:
case RRTILE3586__STATICRR:
@ -5706,12 +5706,12 @@ rrcoolexplosion1:
fallthrough__;
case SMALLSMOKE__STATIC:
if (RR) break;
t->cstat |= 8192+1024;
t->clipdist |= TSPR_FLAGS_DRAW_LAST | TSPR_FLAGS_NO_SHADOW;
break;
case COOLEXPLOSION1__STATIC:
if (RR) goto rrcoolexplosion1;
t->shade = -127;
t->cstat |= 8192+1024;
t->clipdist |= TSPR_FLAGS_DRAW_LAST | TSPR_FLAGS_NO_SHADOW;
t->picnum += (pSprite->shade>>1);
break;
case WALLLIGHT3__STATIC: