From 106ec53d1f096d9810009b885025bf68655373df Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 8 Dec 2021 19:51:58 +0100 Subject: [PATCH] - 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. --- source/core/rendering/hw_sections.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/core/rendering/hw_sections.cpp b/source/core/rendering/hw_sections.cpp index f7c8b6aac..631191d4b 100644 --- a/source/core/rendering/hw_sections.cpp +++ b/source/core/rendering/hw_sections.cpp @@ -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)