- added a sector index to the subsector struct.

This will be used to process dynamic lights for flats in the processing pass, allowing to remove the lights-only pass entirely.
This commit is contained in:
Christoph Oelckers 2018-04-30 23:48:16 +02:00
commit 7aea010892
3 changed files with 6 additions and 27 deletions

View file

@ -248,7 +248,7 @@ static void PrepareSectorData()
for (auto &sub : level.subsectors)
{
sub.render_sector->subsectorcount++;
sub.sectorindex = (uint16_t)sub.render_sector->subsectorcount++;
}
for (auto &sec : level.sectors)