Merge remote-tracking branch 'remotes/origin/master' into new_level_refactor
This commit is contained in:
commit
ff903da19a
7 changed files with 106 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue