]> git.mxchange.org Git - flightgear.git/commitdiff
Make sure the atmosphere is updated before the flight model.
authordavid <david>
Sun, 2 Mar 2003 01:43:00 +0000 (01:43 +0000)
committerdavid <david>
Sun, 2 Mar 2003 01:43:00 +0000 (01:43 +0000)
src/Main/main.cxx

index 2f050852a9b0316d7b81e06bf40e6a238459b719..7a42412571d7f1ce4a77a94895ad6f389c74a398 100644 (file)
@@ -903,7 +903,6 @@ void fgUpdateTimeDepCalcs() {
          globals->get_scenery()->get_cur_elev() > -9990 )
     {
        SG_LOG(SG_FLIGHT,SG_INFO, "Finally initializing fdm");  
-       
        cur_fdm_state->init();
        if ( cur_fdm_state->get_bound() ) {
            cur_fdm_state->unbind();
@@ -911,6 +910,10 @@ void fgUpdateTimeDepCalcs() {
        cur_fdm_state->bind();
     }
 
+#ifndef FG_WEATHERCM
+    globals->get_environment_mgr()->update(delta_time_sec);
+#endif
+
     // conceptually, the following block could be done for each fdm
     // instance ...
     if ( !cur_fdm_state->get_inited() ) {
@@ -1023,10 +1026,6 @@ static void fgMainLoop( void ) {
     // init routine and we don't have to worry about it again.
 #endif
 
-#ifndef FG_WEATHERCM
-    globals->get_environment_mgr()->update(delta_time_sec);
-#endif
-
     // Fix elevation.  I'm just sticking this here for now, it should
     // probably move eventually