- rename FBunch's sectnum because it complicated searching for other stuff.

This commit is contained in:
Christoph Oelckers 2021-12-02 00:01:45 +01:00
parent ed659df9d8
commit 4c13f24357
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ bool BunchDrawer::StartBunch(int sectnum, int linenum, binangle startan, binangl
{
FBunch* bunch = &Bunches[LastBunch = Bunches.Reserve(1)];
bunch->sectnum = sectnum;
bunch->sectornum = sectnum;
bunch->startline = bunch->endline = linenum;
bunch->startangle = startan;
bunch->endangle = endan;
@ -311,7 +311,7 @@ void BunchDrawer::ProcessBunch(int bnch)
SetupWall.Clock();
HWWall hwwall;
hwwall.Process(di, &wall[ww], &sector[bunch->sectnum], wall[ww].nextsector < 0 ? nullptr : &sector[wall[ww].nextsector]);
hwwall.Process(di, &wall[ww], &sector[bunch->sectornum], wall[ww].nextsector < 0 ? nullptr : &sector[wall[ww].nextsector]);
rendered_lines++;
SetupWall.Unclock();

View file

@ -8,7 +8,7 @@ class Clipper;
struct FBunch
{
int sectnum;
int sectornum;
int startline;
int endline;
bool portal;