mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-04 07:52:22 +00:00
OGL support
This commit is contained in:
parent
8d39d4be31
commit
d8cf9327a6
1 changed files with 16 additions and 8 deletions
|
|
@ -2690,6 +2690,8 @@ static void HWR_AddLine(seg_t * line)
|
||||||
// SoM: Backsector needs to be run through R_FakeFlat
|
// SoM: Backsector needs to be run through R_FakeFlat
|
||||||
static sector_t tempsec;
|
static sector_t tempsec;
|
||||||
|
|
||||||
|
sector_t *thissec = R_PointInSubsector(viewx, viewy)->sector;
|
||||||
|
|
||||||
if (line->polyseg && !(line->polyseg->flags & POF_RENDERSIDES))
|
if (line->polyseg && !(line->polyseg->flags & POF_RENDERSIDES))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -2811,11 +2813,14 @@ static void HWR_AddLine(seg_t * line)
|
||||||
SLOPEPARAMS( gr_backsector->c_slope, backc1, backc2, gr_backsector->ceilingheight)
|
SLOPEPARAMS( gr_backsector->c_slope, backc1, backc2, gr_backsector->ceilingheight)
|
||||||
#undef SLOPEPARAMS
|
#undef SLOPEPARAMS
|
||||||
|
|
||||||
// Closed door.
|
if (thissec != gr_backsector && thissec != gr_frontsector)
|
||||||
if ((backc1 <= frontf1 && backc2 <= frontf2)
|
|
||||||
|| (backf1 >= frontc1 && backf2 >= frontc2))
|
|
||||||
{
|
{
|
||||||
goto clipsolid;
|
// Closed door.
|
||||||
|
if ((backc1 <= frontf1 && backc2 <= frontf2)
|
||||||
|
|| (backf1 >= frontc1 && backf2 >= frontc2))
|
||||||
|
{
|
||||||
|
goto clipsolid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Window.
|
// Window.
|
||||||
|
|
@ -2828,10 +2833,13 @@ static void HWR_AddLine(seg_t * line)
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// Closed door.
|
if (thissec != gr_backsector && thissec != gr_frontsector)
|
||||||
if (gr_backsector->ceilingheight <= gr_frontsector->floorheight ||
|
{
|
||||||
gr_backsector->floorheight >= gr_frontsector->ceilingheight)
|
// Closed door.
|
||||||
goto clipsolid;
|
if (gr_backsector->ceilingheight <= gr_frontsector->floorheight ||
|
||||||
|
gr_backsector->floorheight >= gr_frontsector->ceilingheight)
|
||||||
|
goto clipsolid;
|
||||||
|
}
|
||||||
|
|
||||||
// Window.
|
// Window.
|
||||||
if (gr_backsector->ceilingheight != gr_frontsector->ceilingheight ||
|
if (gr_backsector->ceilingheight != gr_frontsector->ceilingheight ||
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue