Revert "smol optimization to HWR_Addline"

This reverts commit e6359663b1.
This commit is contained in:
Alug committed 2024-07-13 13:06:45 +02:00
1 parent bcb332e88f
commit 837ed3535d
1 file changed
-12
-12
View File
@@ -2549,18 +2549,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);