mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
PolyObject: Allow translucency to be set via X offset
This commit is contained in:
parent
ef394eccfb
commit
af2098c3b6
1 changed files with 5 additions and 1 deletions
|
|
@ -217,7 +217,11 @@ static void Polyobj_GetInfo(polyobj_t *po)
|
||||||
if (po->parent == po->id) // do not allow a self-reference
|
if (po->parent == po->id) // do not allow a self-reference
|
||||||
po->parent = -1;
|
po->parent = -1;
|
||||||
|
|
||||||
po->translucency = (lines[i].frontsector->floorheight>>FRACBITS) / 100;
|
po->translucency = (lines[i].flags & ML_DONTPEGTOP)
|
||||||
|
? (sides[lines[i].sidenum[0]].textureoffset>>FRACBITS)
|
||||||
|
: ((lines[i].frontsector->floorheight>>FRACBITS) / 100);
|
||||||
|
|
||||||
|
po->translucency = max(min(po->translucency, NUMTRANSMAPS), 0);
|
||||||
|
|
||||||
po->flags = POF_SOLID|POF_TESTHEIGHT|POF_RENDERSIDES;
|
po->flags = POF_SOLID|POF_TESTHEIGHT|POF_RENDERSIDES;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue