This commit is contained in:
Alug committed 2024-02-01 01:55:04 +01:00
1 parent 0475489e24
commit d232e0e2c6
1 file changed
+9 -15
+9 -15
View File
@@ -3769,25 +3769,19 @@ void HWR_RenderBSPNode(INT32 bspnum)
// Found a subsector?
if (bspnum & NF_SUBSECTOR)
{
if (bspnum == -1)
// PORTAL CULLING
if (portalclipline)
{
HWR_Subsector(0);
}
else
{
// PORTAL CULLING
if (portalclipline)
sector_t *sect = subsectors[bspnum & ~NF_SUBSECTOR].sector;
if (portalcullsector)
{
if (portalcullsector)
{
if (portalcullsector != subsectors[bspnum & ~NF_SUBSECTOR].sector)
return;
else
portalcullsector = NULL;
}
if (sect != portalcullsector)
return;
portalcullsector = NULL;
}
HWR_Subsector(bspnum&(~NF_SUBSECTOR));
}
if (bspnum != -1)
HWR_Subsector(bspnum&(~NF_SUBSECTOR));
return;
}