Serialize sunlight

This commit is contained in:
RaveYard 2024-05-22 10:00:37 +02:00
commit c0db01ffd7

View file

@ -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);