mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-04 02:02:06 +00:00
Fix polyobject segs messing with 3D floors they shouldn't be
This commit is contained in:
parent
d004515d6a
commit
2017eb4d9e
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue