force allow light updates when lm_dynlights is on
This commit is contained in:
parent
88c57a6677
commit
42e20f248d
2 changed files with 5 additions and 2 deletions
|
|
@ -69,3 +69,6 @@ EXTERN_CVAR(Bool, gl_fakemodellight)
|
|||
EXTERN_CVAR(Float, gl_fakemodellightintensity)
|
||||
|
||||
|
||||
|
||||
EXTERN_CVAR(Bool, lm_dynlights)
|
||||
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ public:
|
|||
if (tile->Binding.Type == ST_UPPERSIDE || tile->Binding.Type == ST_MIDDLESIDE || tile->Binding.Type == ST_LOWERSIDE)
|
||||
{
|
||||
sector_t* sector = Level->sides[tile->Binding.TypeIndex].sector;
|
||||
if (sector && sector->Flags & SECF_LM_DYNAMIC)
|
||||
if (sector && (sector->Flags & SECF_LM_DYNAMIC || lm_dynlights))
|
||||
{
|
||||
VisibleTiles.ReceivedNewLight.Push(tile);
|
||||
}
|
||||
|
|
@ -305,7 +305,7 @@ public:
|
|||
else if (tile->Binding.Type == ST_CEILING || tile->Binding.Type == ST_FLOOR)
|
||||
{
|
||||
sector_t* sector = Level->subsectors[tile->Binding.TypeIndex].sector;
|
||||
if (sector && sector->Flags & SECF_LM_DYNAMIC)
|
||||
if (sector && (sector->Flags & SECF_LM_DYNAMIC || lm_dynlights))
|
||||
{
|
||||
VisibleTiles.ReceivedNewLight.Push(tile);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue