mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- this needed more fixes...
This commit is contained in:
parent
d0e551060d
commit
dd05e564cf
1 changed files with 3 additions and 5 deletions
|
@ -226,11 +226,11 @@ static int P_Set3DFloor(line_t * line, int param, int param2, int alpha)
|
||||||
if (param==0)
|
if (param==0)
|
||||||
{
|
{
|
||||||
flags=FF_EXISTS|FF_RENDERALL|FF_SOLID|FF_INVERTSECTOR;
|
flags=FF_EXISTS|FF_RENDERALL|FF_SOLID|FF_INVERTSECTOR;
|
||||||
|
alpha = 255;
|
||||||
for (i=0;i<sec->linecount;i++)
|
for (i=0;i<sec->linecount;i++)
|
||||||
{
|
{
|
||||||
line_t * l=sec->lines[i];
|
line_t * l=sec->lines[i];
|
||||||
|
|
||||||
alpha=255;
|
|
||||||
if (l->special==Sector_SetContents && l->frontsector==sec)
|
if (l->special==Sector_SetContents && l->frontsector==sec)
|
||||||
{
|
{
|
||||||
alpha=clamp<int>(l->args[1], 0, 100);
|
alpha=clamp<int>(l->args[1], 0, 100);
|
||||||
|
@ -252,12 +252,10 @@ static int P_Set3DFloor(line_t * line, int param, int param2, int alpha)
|
||||||
|
|
||||||
l->frontsector->ColorMap =
|
l->frontsector->ColorMap =
|
||||||
GetSpecialLights (l->frontsector->ColorMap->Color,
|
GetSpecialLights (l->frontsector->ColorMap->Color,
|
||||||
(unsigned int)(vavoomcolors[l->args[0]]&VC_COLORMASK),
|
vavoomcolors[l->args[0]],
|
||||||
l->frontsector->ColorMap->Desaturate);
|
l->frontsector->ColorMap->Desaturate);
|
||||||
|
|
||||||
alpha = (int)((unsigned int)(vavoomcolors[l->args[0]]&VC_ALPHAMASK)>>24);
|
|
||||||
}
|
}
|
||||||
else alpha=(alpha*255)/100;
|
alpha=(alpha*255)/100;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue