- 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:
parent
375dd7e28f
commit
9ddca3c3a9
9 changed files with 12 additions and 58 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue