- fixed bad default alpha for 3D floors.

This is a byte value, therefore the default must be 255, not 65536.
This commit is contained in:
Christoph Oelckers 2019-08-18 15:04:34 +02:00
parent 9210811b74
commit ca805016c8
1 changed files with 2 additions and 2 deletions

View File

@ -173,13 +173,13 @@ void P_Add3DFloor(sector_t* sec, sector_t* sec2, line_t* master, int flags, int
ffloor->flags = flags;
ffloor->master = master;
ffloor->alpha = alpha;
ffloor->alpha = clamp(alpha, 0, 255);
ffloor->top.vindex = ffloor->bottom.vindex = -1;
// The engine cannot handle sloped translucent floors. Sorry
if (ffloor->top.plane->isSlope() || ffloor->bottom.plane->isSlope())
{
ffloor->alpha = OPAQUE;
ffloor->alpha = 255;
ffloor->flags &= ~FF_ADDITIVETRANS;
}