Fix translucency conversion bug introduced earlier for FOFs.

This commit is contained in:
Nev3r 2020-03-11 14:14:15 +01:00
parent d28eb4dd45
commit 0e6baf481f

View file

@ -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;