]> git.mxchange.org Git - flightgear.git/commitdiff
give FDMs one update cycle time before setting the fdm-initialized signal
authormfranz <mfranz>
Tue, 16 Oct 2007 07:55:43 +0000 (07:55 +0000)
committermfranz <mfranz>
Tue, 16 Oct 2007 07:55:43 +0000 (07:55 +0000)
(YASim needs that to fully initialize the landing gear)

src/Main/main.cxx

index c3962078991bf95aa94a3e5c50a8228ef0ef76d7..cd6b71b3049cc8686d81d6ea1d9f0398c8ab3f39 100644 (file)
@@ -152,11 +152,6 @@ void fgUpdateTimeDepCalcs() {
     if ( cur_fdm_state->get_inited() ) {
         // we have been inited, and  we are good to go ...
 
-        if ( !inited ) {
-            inited = true;
-            fgSetBool("/sim/signals/fdm-initialized", true);
-        }
-
         if ( replay_state->getIntValue() == 0 ) {
             // replay off, run fdm
             cur_fdm_state->update( delta_time_sec );
@@ -172,6 +167,12 @@ void fgUpdateTimeDepCalcs() {
                 // paused playback (don't advance replay time)
             }
         }
+
+        if ( !inited ) {
+            inited = true;
+            fgSetBool("/sim/signals/fdm-initialized", true);
+        }
+
     } else {
         // do nothing, fdm isn't inited yet
     }