mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-05-31 09:11:43 +00:00
- fixed: IsVisibleToPlayer needs to be checked for the owner of owned dynamic lights.
This commit is contained in:
parent
992994239b
commit
9ac3b6aa1b
2 changed files with 36 additions and 29 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue