1
0
Fork 0

give FDMs one update cycle time before setting the fdm-initialized signal

(YASim needs that to fully initialize the landing gear)
This commit is contained in:
mfranz 2007-10-16 07:55:43 +00:00
parent fa44895b5f
commit 2b338113af

View file

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