Fix polyobj planes ending up in the level mesh
This commit is contained in:
parent
4ca2ffd58e
commit
4ae767cc5a
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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(§ion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue