- 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

@ -373,7 +373,7 @@ static void GroupSectorPortals(FLevelLocals *Level)
for (int k = 0; k < sec->subsectorcount; k++)
{
subsector_t *sub = sec->subsectors[k];
BuildPortalCoverage(&sub->portalcoverage[plane], sub, pair->Key.mDisplacement);
BuildPortalCoverage(Level, &sub->portalcoverage[plane], sub, pair->Key.mDisplacement);
}
sec->portals[plane] = portal;
}

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

View file

@ -160,7 +160,7 @@ public:
}
};
struct FLevelLocals;
void CreateSections(FLevelLocals *l);
#endif