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:
parent
fa44895b5f
commit
2b338113af
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue