diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 136def751..0d1b698d3 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1569,7 +1569,10 @@ void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom lightnum = HWR_CalcWallLight(gr_frontsector->lightlevel, vs.x, vs.y, ve.x, ve.y); colormap = gr_frontsector->extra_colormap; } - + + if (gr_linedef->flags & ML_TFERLINE) + noencore = true; + if (gr_frontsector) Surf.PolyColor.s.alpha = 255; @@ -1577,8 +1580,6 @@ void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom { INT32 gr_toptexture, gr_bottomtexture; // two sided line - - noencore = false; #ifdef ESLOPE SLOPEPARAMS(gr_backsector->c_slope, worldhigh, worldhighslope, gr_backsector->ceilingheight) @@ -1588,9 +1589,6 @@ void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom worldlow = gr_backsector->floorheight; #endif - if (gr_linedef->flags & ML_TFERLINE) - noencore = true; - // Sky culling if (!gr_curline->polyseg) // Don't do it for polyobjects {