mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Use SURF_TRANSPARENT instead SURF_TRANS33 | SURF_TRANS66
This commit is contained in:
parent
ea7f219832
commit
a0745ba023
2 changed files with 2 additions and 2 deletions
|
@ -1119,7 +1119,7 @@ R_GetBrushesLighting(void)
|
||||||
|
|
||||||
for (k = 0; k < currentmodel->nummodelsurfaces; k++, surf++)
|
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)
|
|| surf->flags & SURF_DRAWTURB || surf->lmchain_frame == r_framecount)
|
||||||
{
|
{
|
||||||
continue; // either not affected by light, or already in the chain
|
continue; // either not affected by light, or already in the chain
|
||||||
|
|
|
@ -827,7 +827,7 @@ rocket_touch(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
|
||||||
if (!deathmatch->value && !coop->value)
|
if (!deathmatch->value && !coop->value)
|
||||||
{
|
{
|
||||||
if ((surf) && !(surf->flags &
|
if ((surf) && !(surf->flags &
|
||||||
(SURF_WARP | SURF_TRANS33 | SURF_TRANS66 | SURF_FLOWING)))
|
(SURF_WARP | SURF_TRANSPARENT | SURF_FLOWING)))
|
||||||
{
|
{
|
||||||
n = randk() % 5;
|
n = randk() % 5;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue