From f9463d8efac7dc5067347ecc14e9ec1c7fba562e Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 9 Sep 2024 22:32:51 +0200 Subject: [PATCH] smol cleanup --- src/hardware/hw_main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 71b1bc17c..ca60fac28 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1515,7 +1515,7 @@ void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom // two sided line if (gr_backsector) { - INT32 gr_toptexture, gr_bottomtexture; + INT32 gr_toptexture = 0, gr_bottomtexture = 0; SLOPEPARAMS(gr_backsector->c_slope, worldhigh, worldhighslope, gr_backsector->ceilingheight) SLOPEPARAMS(gr_backsector->f_slope, worldlow, worldlowslope, gr_backsector->floorheight) @@ -2486,10 +2486,7 @@ static void HWR_AddLine(seg_t *line) } if (gr_portal == GRPORTAL_STENCIL || gr_portal == GRPORTAL_DEPTH) - { - gr_backsector = line->backsector; goto doaddline; - } if (line->linedef->special == 40) {