Use SURF_TRANSPARENT instead SURF_TRANS33 | SURF_TRANS66

This commit is contained in:
Denis Pauk 2024-07-31 22:48:53 +03:00
parent ea7f219832
commit a0745ba023
2 changed files with 2 additions and 2 deletions

View File

@ -1119,7 +1119,7 @@ R_GetBrushesLighting(void)
for (k = 0; k < currentmodel->nummodelsurfaces; k++, surf++)
{
if (surf->texinfo->flags & (SURF_TRANS33 | SURF_TRANS66 | SURF_WARP)
if (surf->texinfo->flags & (SURF_TRANSPARENT | SURF_WARP)
|| surf->flags & SURF_DRAWTURB || surf->lmchain_frame == r_framecount)
{
continue; // either not affected by light, or already in the chain

View File

@ -827,7 +827,7 @@ rocket_touch(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
if (!deathmatch->value && !coop->value)
{
if ((surf) && !(surf->flags &
(SURF_WARP | SURF_TRANS33 | SURF_TRANS66 | SURF_FLOWING)))
(SURF_WARP | SURF_TRANSPARENT | SURF_FLOWING)))
{
n = randk() % 5;