mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Fix translucency conversion bug introduced earlier for FOFs.
This commit is contained in:
parent
d28eb4dd45
commit
0e6baf481f
1 changed files with 1 additions and 2 deletions
|
@ -5857,9 +5857,8 @@ static ffloor_t *P_AddFakeFloor(sector_t *sec, sector_t *sec2, line_t *master, f
|
||||||
else th = th->next;
|
else th = th->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (flags & FF_TRANSLUCENT)
|
if (flags & FF_TRANSLUCENT)
|
||||||
fflr->alpha = sides[master->sidenum[0]].toptexture > 0 ? (master->alpha * 0xff) >> FRACBITS : 0x80;
|
fflr->alpha = master->alpha > 0 ? (master->alpha * 0xff) >> FRACBITS : 0x80;
|
||||||
else
|
else
|
||||||
fflr->alpha = 0xff;
|
fflr->alpha = 0xff;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue