From 1f05663460a957783a401dd53634082204b6e3ea Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 5 Oct 2024 17:36:12 +0100 Subject: [PATCH] Add dummy sunlight source to light table --- KeepersCompound.LGS/Database/Chunks/WorldRep.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/KeepersCompound.LGS/Database/Chunks/WorldRep.cs b/KeepersCompound.LGS/Database/Chunks/WorldRep.cs index b27c033..85a3f86 100644 --- a/KeepersCompound.LGS/Database/Chunks/WorldRep.cs +++ b/KeepersCompound.LGS/Database/Chunks/WorldRep.cs @@ -617,11 +617,14 @@ public class WorldRep : IChunk public void Reset() { - // TODO: Seems light we store something for sunlight at index 0 even if sunlight isn't being used - LightCount = 0; + // Seems light we store something for sunlight at index 0 even if sunlight isn't being used + // TODO: Work out what to actually *put* here + LightCount = 1; + Lights.Clear(); + Lights.Add(new LightData()); + DynamicLightCount = 0; AnimMapCount = 0; - Lights.Clear(); AnimCellMaps.Clear(); }