diff --git a/src/g_level.cpp b/src/g_level.cpp index 2a2d6471a9..7eeb443fbd 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1439,12 +1439,14 @@ void G_AirControlChanged () // // //========================================================================== +void gl_SerializeGlobals(FArchive &arc); void G_SerializeLevel (FArchive &arc, bool hubLoad) { int i = level.totaltime; Renderer->StartSerialize(arc); + gl_SerializeGlobals(arc); arc << level.flags << level.flags2 diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 79d21e4e31..395403690a 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -999,6 +999,10 @@ void FGLInterface::StateChanged(AActor *actor) void FGLInterface::StartSerialize(FArchive &arc) { gl_DeleteAllAttachedLights(); +} + +void gl_SerializeGlobals(FArchive &arc) +{ arc << fogdensity << outsidefogdensity << skyfog; }