mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
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:
commit
b7ff0164e9
1 changed files with 8 additions and 0 deletions
|
@ -1477,10 +1477,18 @@ static void R_RenderSegLoop (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < numffloors; i++)
|
for (i = 0; i < numffloors; i++)
|
||||||
|
{
|
||||||
|
if (curline->polyseg && (ffloor[i].polyobj != curline->polyseg))
|
||||||
|
continue;
|
||||||
|
|
||||||
ffloor[i].f_frac += ffloor[i].f_step;
|
ffloor[i].f_frac += ffloor[i].f_step;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < numbackffloors; i++)
|
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].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;
|
ffloor[i].b_frac += ffloor[i].b_step;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue