This seems to fix a Polymost rendering error in which certain polygons touching the sides of the screen would fail to render from some angles. YMMV.

git-svn-id: https://svn.eduke32.com/eduke32@6016 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-01-18 22:22:10 +00:00
parent 7dcd59b35b
commit 396a04fe15

View file

@ -2374,7 +2374,8 @@ skip: ;
int const ni = vsp[i].n;
if ((vsp[i].ctag == vsp[ni].ctag) && (vsp[i].ftag == vsp[ni].ftag))
if ((vsp[i].ctag == vsp[ni].ctag) && (vsp[i].ftag == vsp[ni].ftag) &&
((vsp[ni].cy[1] <= vsp[i].cy[1]) || (vsp[ni].fy[1] >= vsp[i].fy[1])))
{
vsp[i].cy[1] = vsp[ni].cy[1];
vsp[i].fy[1] = vsp[ni].fy[1];