From c9bc9ce38c166a2c66cb12fc50b198f35a9c128a Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 10 Sep 2024 10:58:34 +0200 Subject: [PATCH] Revert "smol optimization R_AddLine" This reverts commit 677cdc77e4eff4045e3e33947b1aabb802940614. --- src/hardware/hw_main.c | 5 ++--- src/r_bsp.c | 11 ----------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 35529d9ad..8d7c17af5 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2512,9 +2512,8 @@ doaddline: { if (!line->polyseg && !line->sidedef->midtexture - && ((!gr_frontsector->ffloors && !gr_backsector->ffloors) - || (gr_frontsector->tag == gr_backsector->tag))) - return; // line is empty, don't even bother + && ((!gr_frontsector->ffloors && !gr_backsector->ffloors))) + return; // line is empty, don't even bother // treat like wide open window instead HWR_ProcessSeg(); // Doesn't need arguments because they're defined globally :D return; diff --git a/src/r_bsp.c b/src/r_bsp.c index aeef03613..edd7cb906 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -500,17 +500,6 @@ static void R_AddLine(seg_t *line) doorclosed = 0; - if (backsector->ceilingpic == skyflatnum && frontsector->ceilingpic == skyflatnum && backsector->floorpic == skyflatnum && frontsector->floorpic == skyflatnum) // everything's sky? let's save us a bit of time then - { - if (!line->polyseg && - !line->sidedef->midtexture - && ((!frontsector->ffloors && !backsector->ffloors) - || (frontsector->tag == backsector->tag))) - return; // line is empty, don't even bother - - goto clippass; // treat like wide open window instead - } - // Closed door. if (frontsector->f_slope || frontsector->c_slope || backsector->f_slope || backsector->c_slope) {