- fixed incomplete commit.

I have no idea where the rest of this stuff went...
This commit is contained in:
Christoph Oelckers 2018-12-30 08:22:34 +01:00
commit 65b01bd16d
7 changed files with 14 additions and 11 deletions

View file

@ -815,6 +815,7 @@ public:
void PrintSections(FSectionContainer &container)
{
auto Level = &level;
for (unsigned i = 0; i < container.allSections.Size(); i++)
{
auto &section = container.allSections[i];
@ -861,21 +862,21 @@ void PrintSections(FSectionContainer &container)
//
//=============================================================================
void CreateSections(FSectionContainer &container)
void CreateSections(FLevelLocals *Level)
{
FSectionCreator creat;
FSectionCreator creat(Level);
creat.GroupSubsectors();
creat.MakeOutlines();
creat.MergeLines();
creat.FindOuterLoops();
creat.GroupSections();
creat.ConstructOutput(container);
creat.ConstructOutput(Level->sections);
creat.FixMissingReferences();
}
CCMD(printsections)
{
PrintSections(Level->sections);
PrintSections(level.sections);
}