mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-11 07:41:36 +00:00
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:
parent
278f2e9b66
commit
ae27ace7fe
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue