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() ) {
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue