From c0db01ffd7d89686bfb6aa6d4644791628e92425 Mon Sep 17 00:00:00 2001 From: RaveYard <29225776+MrRaveYard@users.noreply.github.com> Date: Wed, 22 May 2024 10:00:37 +0200 Subject: [PATCH] Serialize sunlight --- src/p_saveg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 6c72d3a52..76c9841d4 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -1014,7 +1014,9 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload) ("scrolls", Scrolls) ("automap", automap) ("interpolator", interpolator) - ("frozenstate", frozenstate); + ("frozenstate", frozenstate) + ("suncolor", SunColor) + ("sundirection", SunDirection); // Hub transitions must keep the current total time @@ -1025,6 +1027,9 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload) { InitSkyMap(this); AirControlChanged(); + + levelMesh->SunColor = SunColor; + levelMesh->SunDirection = SunDirection; } Behaviors.SerializeModuleStates(arc);