those should better be clamped oops

This commit is contained in:
Alug committed 2024-12-11 01:25:55 +01:00
1 parent 91b6143f15
commit a05c38b1fe
1 file changed
+3 -2
+3 -2
View File
@@ -1013,8 +1013,9 @@ static void HWR_SplitWall(sector_t *sector, FOutVector *wallVerts, INT32 texnum,
continue;
// Found a break
bot = max(bheight, realbot);
endbot = max(endbheight, endrealbot);
// The heights are clamped to ensure the polygon doesn't cross itself.
bot = CLAMP(bheight,realbot , top);
endbot = CLAMP(endbheight, endrealbot, endtop);
Surf->PolyColor.s.alpha = alpha;