From b3ff5e30aa06685ff573ac4ca6d8aad92b65fde0 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 fc977aa18..4715042e5 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1055,7 +1055,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 @@ -3694,7 +3697,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