From 1db698961c9cc812e172860e63d74cee776304fa Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 10 Sep 2024 10:58:37 +0200 Subject: [PATCH] Revert "smol optimization to HWR_AddLine" This reverts commit 77c9badeca54377661903ee36012031f24437ee2. --- src/hardware/hw_main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 8d7c17af5..7b2b2c7ba 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2507,18 +2507,6 @@ doaddline: { gr_backsector = R_FakeFlat(gr_backsector, &tempsec, NULL, NULL, true); - if (gr_backsector->ceilingpic == skyflatnum && gr_frontsector->ceilingpic == skyflatnum - && gr_backsector->floorpic == skyflatnum && gr_frontsector->floorpic == skyflatnum) // everything's sky? let's save us a bit of time then - { - if (!line->polyseg && - !line->sidedef->midtexture - && ((!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; - } - if (CheckClip(gr_frontsector, gr_backsector)) { gld_clipper_SafeAddClipRange(angle2, angle1);