Warn about lights outside of the world

This commit is contained in:
Jarrod Doyle 2025-02-22 20:38:38 +00:00
parent 1c869bb123
commit fbc24b855a
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 12 additions and 0 deletions

View File

@ -510,6 +510,18 @@ public class LightMapper
break; 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); Log.Information("Mission has {c} lights", _lights.Count);