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

@ -3693,8 +3693,6 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
// set up world state
SpawnSpecials();
//InitLevelMesh(map);
// disable reflective planes on sloped sectors.
for (auto &sec : Level->sectors)
{

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);