Make FOFs extend to infinity when in contact with a horizon line.
Make FOFs extend to infinity when in contact with a horizon line. Signed-off-by: Nev3r <apophycens@gmail.com>
This commit is contained in:
parent
a93e96c75b
commit
83f953edb8
11
src/r_segs.c
11
src/r_segs.c
|
@ -2818,6 +2818,16 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
|||
ffloor[i].f_pos >>= 4;
|
||||
#ifdef ESLOPE
|
||||
ffloor[i].f_pos_slope >>= 4;
|
||||
#endif
|
||||
if (linedef->special == 41) // Horizon lines extend FOFs in contact with them too.
|
||||
{
|
||||
ffloor[i].f_step = 0;
|
||||
ffloor[i].f_frac = (centeryfrac>>4);
|
||||
topfrac++; // Prevent 1px HOM
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef ESLOPE
|
||||
ffloor[i].f_frac = (centeryfrac>>4) - FixedMul(ffloor[i].f_pos, rw_scale);
|
||||
ffloor[i].f_step = ((centeryfrac>>4) - FixedMul(ffloor[i].f_pos_slope, ds_p->scale2) - ffloor[i].f_frac)/(range);
|
||||
#else
|
||||
|
@ -2826,6 +2836,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
|||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (backsector)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue