Make sure the atmosphere is updated before the flight model.
This commit is contained in:
parent
af38fe4803
commit
c90d7e96c2
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue