mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Take slopes into account even more in FOF wall cutoff in HWR_ProcessSeg
This commit is contained in:
parent
8f22ccccdb
commit
955bbeed42
1 changed files with 22 additions and 8 deletions
|
|
@ -1716,10 +1716,17 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom
|
||||||
hS = P_GetFFloorTopZAt (rover, v2x, v2y);
|
hS = P_GetFFloorTopZAt (rover, v2x, v2y);
|
||||||
l = P_GetFFloorBottomZAt(rover, v1x, v1y);
|
l = P_GetFFloorBottomZAt(rover, v1x, v1y);
|
||||||
lS = P_GetFFloorBottomZAt(rover, v2x, v2y);
|
lS = P_GetFFloorBottomZAt(rover, v2x, v2y);
|
||||||
if (!(*rover->t_slope) && !gl_frontsector->c_slope && !gl_backsector->c_slope && h > highcut)
|
// Adjust the heights so the FOF does not overlap with top and bottom textures.
|
||||||
h = hS = highcut;
|
if (h >= highcut && hS >= highcutslope)
|
||||||
if (!(*rover->b_slope) && !gl_frontsector->f_slope && !gl_backsector->f_slope && l < lowcut)
|
{
|
||||||
l = lS = lowcut;
|
h = highcut;
|
||||||
|
hS = highcutslope;
|
||||||
|
}
|
||||||
|
if (l <= lowcut && lS <= lowcutslope)
|
||||||
|
{
|
||||||
|
l = lowcut;
|
||||||
|
lS = lowcutslope;
|
||||||
|
}
|
||||||
//Hurdler: HW code starts here
|
//Hurdler: HW code starts here
|
||||||
//FIXME: check if peging is correct
|
//FIXME: check if peging is correct
|
||||||
// set top/bottom coords
|
// set top/bottom coords
|
||||||
|
|
@ -1868,10 +1875,17 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom
|
||||||
hS = P_GetFFloorTopZAt (rover, v2x, v2y);
|
hS = P_GetFFloorTopZAt (rover, v2x, v2y);
|
||||||
l = P_GetFFloorBottomZAt(rover, v1x, v1y);
|
l = P_GetFFloorBottomZAt(rover, v1x, v1y);
|
||||||
lS = P_GetFFloorBottomZAt(rover, v2x, v2y);
|
lS = P_GetFFloorBottomZAt(rover, v2x, v2y);
|
||||||
if (!(*rover->t_slope) && !gl_frontsector->c_slope && !gl_backsector->c_slope && h > highcut)
|
// Adjust the heights so the FOF does not overlap with top and bottom textures.
|
||||||
h = hS = highcut;
|
if (h >= highcut && hS >= highcutslope)
|
||||||
if (!(*rover->b_slope) && !gl_frontsector->f_slope && !gl_backsector->f_slope && l < lowcut)
|
{
|
||||||
l = lS = lowcut;
|
h = highcut;
|
||||||
|
hS = highcutslope;
|
||||||
|
}
|
||||||
|
if (l <= lowcut && lS <= lowcutslope)
|
||||||
|
{
|
||||||
|
l = lowcut;
|
||||||
|
lS = lowcutslope;
|
||||||
|
}
|
||||||
//Hurdler: HW code starts here
|
//Hurdler: HW code starts here
|
||||||
//FIXME: check if peging is correct
|
//FIXME: check if peging is correct
|
||||||
// set top/bottom coords
|
// set top/bottom coords
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue