mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-17 16:17:06 +02:00
Switching time of day could load the new layer while the old one was still loaded: the apply loop goes through the layers in catalog order and sends one event a pass, so going to an earlier time (WeatherDay -> Evening) sent the load first, and nothing waited for an unload to finish. Two times of day at once carry both times' lights, and a level with many lights overflowed the engine's light tables. A time-of-day layer is now asked to load only once every sibling time of day that is to be off reports requested and loaded both false; until then its row says "Waiting for the old time of day". An unload is no longer sent while the engine is still loading the layer itself. The engine ignored it, so at a level load the level's own time of day could stay loaded beside the saved one, and with the wait above the saved one never loaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>