From 2a4aa513731179e699695a7c55442ab3d7422c2b Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 13 Jul 2024 14:55:28 +0200 Subject: [PATCH] Revert "smol optimization to HWR_Addline" This reverts commit e6359663b1d398013cef09310eaf8f645b4c92a6. --- 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 3c542cf0a..de692b3d0 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2538,18 +2538,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) - || gr_frontsector->tag == gr_backsector->tag)) - 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);