- fixed: IsVisibleToPlayer needs to be checked for the owner of owned dynamic lights.

This commit is contained in:
Christoph Oelckers 2013-11-30 13:15:22 +01:00
parent 992994239b
commit 9ac3b6aa1b
2 changed files with 36 additions and 29 deletions

View file

@ -183,6 +183,10 @@ bool gl_SetupLight(Plane & p, ADynamicLight * light, Vector & nearPt, Vector & u
{
return false;
}
if (light->owned && light->target != NULL && !light->target->IsVisibleToPlayer())
{
return false;
}
scale = 1.0f / ((2.f * radius) - dist);