From a0745ba023a904081200239547f274c782735867 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Wed, 31 Jul 2024 22:48:53 +0300 Subject: [PATCH] Use SURF_TRANSPARENT instead SURF_TRANS33 | SURF_TRANS66 --- src/client/refresh/gl1/gl1_surf.c | 2 +- src/game/g_weapon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/refresh/gl1/gl1_surf.c b/src/client/refresh/gl1/gl1_surf.c index 64559d8a..6646aa4b 100644 --- a/src/client/refresh/gl1/gl1_surf.c +++ b/src/client/refresh/gl1/gl1_surf.c @@ -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 diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index f17eaa92..7de1d4fb 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -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;