Remove incorrect early returns in P_CheckSector

This commit is contained in:
MascaraSnake 2023-03-16 19:17:42 +01:00
parent 404492cb30
commit 1304874a8f

View file

@ -4509,7 +4509,6 @@ boolean P_CheckSector(sector_t *sector, boolean crunch)
continue;
PIT_ChangeSector(mo, true);
return nofit;
}
}
}
@ -4539,10 +4538,7 @@ boolean P_CheckSector(sector_t *sector, boolean crunch)
{
n->visited = true;
if (!(n->m_thing->flags & MF_NOBLOCKMAP))
{
PIT_ChangeSector(n->m_thing, true);
return nofit;
}
break;
}
} while (n);
@ -4562,10 +4558,7 @@ boolean P_CheckSector(sector_t *sector, boolean crunch)
{
n->visited = true; // mark thing as processed
if (!(n->m_thing->flags & MF_NOBLOCKMAP)) //jff 4/7/98 don't do these
{
PIT_ChangeSector(n->m_thing, true); // process it
return nofit;
}
break; // exit and start over
}
} while (n); // repeat from scratch until all things left are marked valid