Add dummy sunlight source to light table

This commit is contained in:
Jarrod Doyle 2024-10-05 17:36:12 +01:00
parent dff2a9da2c
commit 1f05663460
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 6 additions and 3 deletions

View File

@ -617,11 +617,14 @@ public class WorldRep : IChunk
public void Reset() public void Reset()
{ {
// TODO: Seems light we store something for sunlight at index 0 even if sunlight isn't being used // Seems light we store something for sunlight at index 0 even if sunlight isn't being used
LightCount = 0; // TODO: Work out what to actually *put* here
LightCount = 1;
Lights.Clear();
Lights.Add(new LightData());
DynamicLightCount = 0; DynamicLightCount = 0;
AnimMapCount = 0; AnimMapCount = 0;
Lights.Clear();
AnimCellMaps.Clear(); AnimCellMaps.Clear();
} }