Fix polyobj planes ending up in the level mesh

This commit is contained in:
Magnus Norddahl 2023-12-15 12:52:59 +01:00
commit 4ae767cc5a
2 changed files with 2 additions and 2 deletions

View file

@ -136,6 +136,8 @@ void DoomLevelSubmesh::CreateStaticSurfaces(FLevelLocals& doomMap)
for (unsigned int i = 0; i < doomMap.sectors.Size(); i++)
{
sector_t* sector = &doomMap.sectors[i];
if (sector->subsectors[0]->flags & SSECF_POLYORG)
continue;
for (FSection& section : doomMap.sections.SectionsForSector(i))
{
int sectionIndex = doomMap.sections.SectionIndex(&section);