]> git.mxchange.org Git - flightgear.git/commitdiff
Reorginize the code just before fgMainLoop a bit so that the lighting update actually...
authorehofman <ehofman>
Wed, 17 Sep 2003 10:02:36 +0000 (10:02 +0000)
committerehofman <ehofman>
Wed, 17 Sep 2003 10:02:36 +0000 (10:02 +0000)
src/Main/main.cxx

index 0a6a53f91779f0bfc981713c634a0d29d2e45484..cd85ac4110470af41042a7aa011e98ae54dcf863 100644 (file)
@@ -1386,13 +1386,13 @@ static void fgIdleFunction ( void ) {
     } else if ( idle_state == 6 ) {
         // sleep(1);
 
-        fgUpdateSkyAndLightingParams();
-
         idle_state = 1000;
 
         SG_LOG( SG_GENERAL, SG_INFO, "Panel visible = " << fgPanelVisible() );
         fgReshape( fgGetInt("/sim/startup/xsize"),
                fgGetInt("/sim/startup/ysize") );
+
+        fgUpdateSkyAndLightingParams();
     } 
 
     if ( idle_state == 1000 ) {