mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- 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:
parent
9210811b74
commit
ca805016c8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue