- renamed sections2 and sections2PerSector.

No more need for a '2'.
This commit is contained in:
Christoph Oelckers 2021-12-15 13:08:09 +01:00
parent f6d852b5a0
commit fc41a2bd85
9 changed files with 29 additions and 31 deletions

View file

@ -585,7 +585,7 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
PalEntry light = shadeToLight(sector[i].floorshade);
setgotpic(picnum);
for (auto sect : sections2PerSector[i])
for (auto sect : sectionsPerSector[i])
{
TArray<int>* indices;
auto mesh = sectionGeometry.get(sect, 0, { 0.f, 0.f }, &indices);
@ -601,7 +601,7 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
#ifdef _DEBUG
// visualize the triangulator being used.
if (sections2PerSector[i][0]->geomflags & NoEarcut) light.r = light.b = 80;
if (sectionsPerSector[i][0]->geomflags & NoEarcut) light.r = light.b = 80;
#endif
twod->AddPoly(tileGetTexture(picnum, true), vertices.Data(), vertices.Size(), (unsigned*)indices->Data(), indices->Size(), translation, light,
LegacyRenderStyles[STYLE_Translucent], windowxy1.x, windowxy1.y, windowxy2.x + 1, windowxy2.y + 1);