From ae27ace7fef6467cfa99b38d026b36818f2fc156 Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Sat, 30 Aug 2014 14:20:07 +0100 Subject: [PATCH] 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. --- src/hardware/hw_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 58aacf02..93d0e261 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -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); }