test make skyfloors also toggle directional light

This commit is contained in:
Alug committed 2024-11-27 00:02:26 +01:00
1 parent d607d7bd7c
commit b5cd4ab8cd
1 file changed
+1 -1
+1 -1
View File
@@ -438,7 +438,7 @@ boolean P_SectorUsesDirectionalLighting(const sector_t *sector)
if (sector != NULL)
{
// automatically turned on
if (sector->ceilingpic == skyflatnum)
if (sector->ceilingpic == skyflatnum || sector->floorpic == skyflatnum)
{
// sky is visible
return true;