fix clamp assert in HWR_SplitWall
idk man it really hates if lo > hi apparently lol
This commit is contained in:
1 parent
5d807d65e5
commit
73bc64f9da
1 file changed
+2
-2
@@ -1101,8 +1101,8 @@ static void HWR_SplitWall(sector_t *sector, FOutVector *wallVerts, INT32 texnum,
|
||||
|
||||
// Found a break
|
||||
// The heights are clamped to ensure the polygon doesn't cross itself.
|
||||
bot = std::clamp(bheight, realbot, top);
|
||||
endbot = std::clamp(endbheight, endrealbot, endtop);
|
||||
bot = std::min(std::max(bheight, realbot), top);
|
||||
endbot = std::min(std::max(endbheight, endrealbot), endtop);
|
||||
|
||||
Surf->PolyColor.s.alpha = alpha;
|
||||
|
||||
|
||||
Reference in new issue
Block a user