From f8dfc954a0351d4d57c806404f48b6a2304be64a Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 11 Dec 2024 00:32:34 +0100 Subject: [PATCH] test "or" --- src/hardware/hw_main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index fa2f9cfb7..5e45a9163 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1009,7 +1009,10 @@ static void HWR_SplitWall(sector_t *sector, FOutVector *wallVerts, INT32 texnum, endbheight = endrealbot; } - if ((endbheight >= endtop) && (bheight >= top)) + if (endbheight >= endtop) + continue; + + if (bheight >= top) continue; // Found a break @@ -3645,7 +3648,10 @@ static void HWR_SplitSprite(gl_vissprite_t *spr, const boolean papersprite) endbheight = endrealbot; } - if ((endbheight >= endtop) && (bheight >= top)) + if (endbheight >= endtop) + continue; + + if (bheight >= top) continue; // Found a break