- moved the subsectors into FLevelLocals.

This commit is contained in:
Christoph Oelckers 2017-03-17 00:22:52 +01:00
commit f201dab534
28 changed files with 280 additions and 295 deletions

View file

@ -680,7 +680,7 @@ void GLFlat::DrawLightsCompat(int pass)
for (int i = 0; i<sector->subsectorcount; i++)
{
subsector_t * sub = sector->subsectors[i];
if (gl_drawinfo->ss_renderflags[sub - subsectors] & renderflags)
if (gl_drawinfo->ss_renderflags[sub->Index()] & renderflags)
{
DrawSubsectorLights(sub, pass);
}