Fix line portal clipping bug

This commit is contained in:
Magnus Norddahl 2021-02-14 19:10:59 +01:00 committed by Rachael Alexanderson
parent c86715e521
commit 2855b1c4ae
2 changed files with 0 additions and 14 deletions

View file

@ -314,8 +314,6 @@ namespace swrenderer
if (markportal)
{
draw_segment->drawsegclip.SetTopClip(Thread, start, stop, Thread->OpaquePass->ceilingclip);
draw_segment->drawsegclip.SetBottomClip(Thread, start, stop, Thread->OpaquePass->floorclip);
draw_segment->drawsegclip.silhouette = SIL_BOTH;
}
else if (!mBackSector)

View file

@ -55,18 +55,6 @@ namespace swrenderer
memcpy(ceilingclip, topclip + x1, len * sizeof(short));
memcpy(floorclip, bottomclip + x1, len * sizeof(short));
for (int i = 0; i < x2 - x1; i++)
{
if (ceilingclip[i] < 0)
ceilingclip[i] = 0;
if (ceilingclip[i] >= viewheight)
ceilingclip[i] = viewheight - 1;
if (floorclip[i] < 0)
floorclip[i] = 0;
if (floorclip[i] >= viewheight)
floorclip[i] = viewheight - 1;
}
mirror = linedef->special == Line_Mirror;
}
}