- removed the subsector light lists as a preparation step to move over the light traversal code to use sections instead of subsectors.

This commit is contained in:
Christoph Oelckers 2018-11-05 22:35:24 +01:00
commit 9ddca3c3a9
9 changed files with 12 additions and 58 deletions

View file

@ -70,7 +70,7 @@ void PolyModelRenderer::AddLights(AActor *actor)
BSPWalkCircle(x, y, radiusSquared, [&](subsector_t *subsector) // Iterate through all subsectors potentially touched by actor
{
FLightNode * node = subsector->lighthead;
FLightNode * node = subsector->sector->lighthead;
while (node) // check all lights touching a subsector
{
ADynamicLight *light = node->lightsource;