- 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

@ -275,7 +275,7 @@ void RenderPolyPlane::SetDynLights(PolyRenderThread *thread, PolyDrawArgs &args,
return;
}
FLightNode *light_list = sub->lighthead;
FLightNode *light_list = sub->sector->lighthead;
auto cameraLight = PolyCameraLight::Instance();
if ((cameraLight->FixedLightLevel() >= 0) || (cameraLight->FixedColormap() != nullptr))