those should better be clamped oops
This commit is contained in:
1 parent
303f6cb1ce
commit
077ee0bc12
1 file changed
+3
-2
@@ -1059,8 +1059,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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user