- disabled sector splitter for now because it's broken and useless.

The entire section format needs to be redone for better triangulation so fixing this messy code is pointless.
This commit is contained in:
Christoph Oelckers 2021-12-08 19:51:58 +01:00
parent 8e2d324e85
commit 106ec53d1f

View file

@ -87,6 +87,8 @@ void hw_BuildSections()
static void SplitSection(int section, int start, int end)
{
#if 0 // disabled until refactoring. This code is a mess and needs to be redone.
// note: to do this, the sector's lines must be well ordered and there must only be one outline and no holes.
// This also can only apply a single split to a given sector.
int firstsection = Sections.Reserve(2);
@ -195,6 +197,7 @@ static void SplitSection(int section, int start, int end)
sectionspersector[sect.sector].Resize(2);
sectionspersector[sect.sector][0] = Sections.IndexOf(sect1);
sectionspersector[sect.sector][1] = Sections.IndexOf(sect2);
#endif
}
void hw_SplitSector(int sectnum, int start, int end)