Merge branch 'polyobject-ffloor-fix' into 'next'

Polyobject over 3D floor fix for software renderer

See merge request STJr/SRB2!1488
This commit is contained in:
Monster Iestyn 2021-05-07 16:11:03 -04:00
commit b7ff0164e9

View file

@ -1477,10 +1477,18 @@ static void R_RenderSegLoop (void)
}
for (i = 0; i < numffloors; i++)
{
if (curline->polyseg && (ffloor[i].polyobj != curline->polyseg))
continue;
ffloor[i].f_frac += ffloor[i].f_step;
}
for (i = 0; i < numbackffloors; i++)
{
if (curline->polyseg && (ffloor[i].polyobj != curline->polyseg))
continue;
ffloor[i].f_clip[rw_x] = ffloor[i].c_clip[rw_x] = (INT16)((ffloor[i].b_frac >> HEIGHTBITS) & 0xFFFF);
ffloor[i].b_frac += ffloor[i].b_step;
}