mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-27 06:34:15 +00:00
Remove outdated linedef type check in HWR_ProcessSeg
This commit is contained in:
parent
adce427299
commit
f714966c83
1 changed files with 4 additions and 28 deletions
|
@ -1434,34 +1434,10 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom
|
||||||
|
|
||||||
// set alpha for transparent walls
|
// set alpha for transparent walls
|
||||||
// ooops ! this do not work at all because render order we should render it in backtofront order
|
// ooops ! this do not work at all because render order we should render it in backtofront order
|
||||||
switch (gl_linedef->special)
|
|
||||||
{
|
|
||||||
// Translucent
|
|
||||||
case 102:
|
|
||||||
case 121:
|
|
||||||
case 123:
|
|
||||||
case 124:
|
|
||||||
case 125:
|
|
||||||
case 141:
|
|
||||||
case 142:
|
|
||||||
case 144:
|
|
||||||
case 145:
|
|
||||||
case 174:
|
|
||||||
case 175:
|
|
||||||
case 192:
|
|
||||||
case 195:
|
|
||||||
case 221:
|
|
||||||
case 253:
|
|
||||||
case 256:
|
|
||||||
blendmode = PF_Translucent;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
if (gl_linedef->alpha >= 0 && gl_linedef->alpha < FRACUNIT)
|
if (gl_linedef->alpha >= 0 && gl_linedef->alpha < FRACUNIT)
|
||||||
blendmode = HWR_TranstableToAlpha(R_GetLinedefTransTable(gl_linedef->alpha), &Surf);
|
blendmode = HWR_TranstableToAlpha(R_GetLinedefTransTable(gl_linedef->alpha), &Surf);
|
||||||
else
|
else
|
||||||
blendmode = PF_Masked;
|
blendmode = PF_Masked;
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gl_curline->polyseg && gl_curline->polyseg->translucency > 0)
|
if (gl_curline->polyseg && gl_curline->polyseg->translucency > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue