- made several arrays holding sector related data dynamic.

This commit is contained in:
Christoph Oelckers 2021-12-06 20:08:32 +01:00
parent 2a07159c8d
commit 1a3b9f8ac0
11 changed files with 50 additions and 50 deletions

View file

@ -92,6 +92,7 @@ void BunchDrawer::StartScene()
StartTime = I_msTime();
Bunches.Clear();
CompareData.Clear();
gotsector.Resize(numsectors);
gotsector.Zero();
gotsection2.Zero();
gotwall.Zero();
@ -560,7 +561,7 @@ void BunchDrawer::ProcessSection(int sectionnum, bool portal)
SetupSprite.Clock();
int sectnum = sections[sectionnum].sector;
int sectnum = Sections[sectionnum].sector;
if (!gotsector[sectnum])
{
gotsector.Set(sectnum);
@ -598,7 +599,7 @@ void BunchDrawer::ProcessSection(int sectionnum, bool portal)
//Todo: process subsectors
inbunch = false;
auto section = &sections[sectionnum];
auto section = &Sections[sectionnum];
for (unsigned i = 0; i < section->lines.Size(); i++)
{
auto thisline = &sectionLines[section->lines[i]];