- use a dedicated flag word for the dynamic light flags instead of piggybacking on some flags4 bits.

This commit is contained in:
Christoph Oelckers 2017-06-18 10:15:31 +02:00
commit 3b024c347b
11 changed files with 72 additions and 53 deletions

View file

@ -255,7 +255,7 @@ namespace swrenderer
while (node != nullptr)
{
ADynamicLight *light = node->lightsource;
if (light->visibletoplayer && !(light->flags2&MF2_DORMANT) && (!(light->flags4&MF4_DONTLIGHTSELF) || light->target != thing) && !(light->flags4&MF4_DONTLIGHTACTORS))
if (light->visibletoplayer && !(light->flags2&MF2_DORMANT) && (!(light->lightflags&LF_DONTLIGHTSELF) || light->target != thing) && !(light->lightflags&LF_DONTLIGHTACTORS))
{
float lx = (float)(light->X() - thing->X());
float ly = (float)(light->Y() - thing->Y());