Polyobject translucency quick fix.

I realise what I did before may cause FOF's in the same sector to not be
drawn, if they were before.
This commit is contained in:
Sryder13 2014-08-30 14:20:07 +01:00
parent 278f2e9b66
commit ae27ace7fe
1 changed files with 4 additions and 1 deletions

View File

@ -1643,7 +1643,10 @@ static void HWR_StoreWallRange(double startfrac, double endfrac)
if (gr_curline->polyseg && gr_curline->polyseg->translucency > 0)
{
if (gr_curline->polyseg->translucency >= NUMTRANSMAPS) // wall not drawn
return;
{
Surf.FlatColor.s.alpha = 0x00; // This shouldn't draw anything regardless of blendmode
blendmode = PF_Masked;
}
blendmode = HWR_TranstableToAlpha(gr_curline->polyseg->translucency, &Surf);
}