Merge remote-tracking branch 'remotes/origin/master' into new_level_refactor

This commit is contained in:
Christoph Oelckers 2019-01-31 20:43:24 +01:00
commit ff903da19a
7 changed files with 106 additions and 10 deletions

View file

@ -834,15 +834,18 @@ void FLevelLocals::RecreateAllAttachedLights()
while ((a=it.Next()))
{
if (a->IsKindOf(NAME_DynamicLight))
{
::AttachLight(a);
::ActivateLight(a);
}
else
if (!a->IsKindOf(NAME_DynamicLight))
{
a->SetDynamicLights();
}
else if (a->AttachedLights.Size() == 0)
{
::AttachLight(a);
if (!(a->flags2 & MF2_DORMANT))
{
::ActivateLight(a);
}
}
}
}