mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
PolyObjFade: Apply RENDER, SOLID, and NOSPECIALS flags according to spawnflags
This commit is contained in:
parent
d0b2728ce1
commit
33c1109993
1 changed files with 8 additions and 6 deletions
|
|
@ -2898,7 +2898,7 @@ void T_PolyObjFade(polyfade_t *th)
|
||||||
if (po->translucency >= NUMTRANSMAPS) // invisible
|
if (po->translucency >= NUMTRANSMAPS) // invisible
|
||||||
po->flags &= ~POF_RENDERALL;
|
po->flags &= ~POF_RENDERALL;
|
||||||
else
|
else
|
||||||
po->flags |= POF_RENDERALL;
|
po->flags |= (po->spawnflags & POF_RENDERALL);
|
||||||
|
|
||||||
// set collision
|
// set collision
|
||||||
if (th->docollision && th->speed)
|
if (th->docollision && th->speed)
|
||||||
|
|
@ -2910,14 +2910,15 @@ void T_PolyObjFade(polyfade_t *th)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
po->flags |= POF_SOLID;
|
po->flags |= (po->spawnflags & POF_SOLID);
|
||||||
po->flags &= ~POF_NOSPECIALS;
|
if (!(po->spawnflags & POF_NOSPECIALS))
|
||||||
|
po->flags &= ~POF_NOSPECIALS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
po->flags |= POF_RENDERALL;
|
po->flags |= (po->spawnflags & POF_RENDERALL);
|
||||||
|
|
||||||
// set collision
|
// set collision
|
||||||
if (th->docollision && th->speed)
|
if (th->docollision && th->speed)
|
||||||
|
|
@ -2929,8 +2930,9 @@ void T_PolyObjFade(polyfade_t *th)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
po->flags |= POF_SOLID;
|
po->flags |= (po->spawnflags & POF_SOLID);
|
||||||
po->flags &= ~POF_NOSPECIALS;
|
if (!(po->spawnflags & POF_NOSPECIALS))
|
||||||
|
po->flags &= ~POF_NOSPECIALS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue