From fbc24b855a44aae99fc361e607a00ed217a7492c Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 22 Feb 2025 20:38:38 +0000 Subject: [PATCH] Warn about lights outside of the world --- KeepersCompound.Lightmapper/LightMapper.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/KeepersCompound.Lightmapper/LightMapper.cs b/KeepersCompound.Lightmapper/LightMapper.cs index d1beb27..8472108 100644 --- a/KeepersCompound.Lightmapper/LightMapper.cs +++ b/KeepersCompound.Lightmapper/LightMapper.cs @@ -510,6 +510,18 @@ public class LightMapper break; } } + + if (lightCellMap[i] == -1) + { + if (light.ObjId != -1) + { + Log.Warning("Object {Id}: Light is inside solid terrain.", light.ObjId); + } + else + { + Log.Warning("Brush at {Position}: Light is inside solid terrain.", light.Position); + } + } }); Log.Information("Mission has {c} lights", _lights.Count);