mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Fix line portal clipping bug
This commit is contained in:
parent
c86715e521
commit
2855b1c4ae
2 changed files with 0 additions and 14 deletions
|
@ -314,8 +314,6 @@ namespace swrenderer
|
||||||
|
|
||||||
if (markportal)
|
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;
|
draw_segment->drawsegclip.silhouette = SIL_BOTH;
|
||||||
}
|
}
|
||||||
else if (!mBackSector)
|
else if (!mBackSector)
|
||||||
|
|
|
@ -55,18 +55,6 @@ namespace swrenderer
|
||||||
memcpy(ceilingclip, topclip + x1, len * sizeof(short));
|
memcpy(ceilingclip, topclip + x1, len * sizeof(short));
|
||||||
memcpy(floorclip, bottomclip + 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;
|
mirror = linedef->special == Line_Mirror;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue