- fixed: RecreateAllAttachedLights must activate the lights it creates.

This also removes the gl_attachedlights CVAR because with the new management this doesn't really work anymore.
This commit is contained in:
Christoph Oelckers 2019-01-30 20:21:00 +01:00
commit a2065cae4b
4 changed files with 1 additions and 5 deletions

View file

@ -75,8 +75,6 @@ CUSTOM_CVAR (Bool, gl_lights, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOIN
else AActor::DeleteAllAttachedLights();
}
CVAR (Bool, gl_attachedlights, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
//==========================================================================
//
//==========================================================================
@ -859,6 +857,7 @@ void AActor::RecreateAllAttachedLights()
if (a->IsKindOf(NAME_DynamicLight))
{
::AttachLight(a);
::ActivateLight(a);
}
else
{