From: mfranz Date: Wed, 19 Nov 2008 07:46:10 +0000 (+0000) Subject: Update the model manager after the event manager, so that model X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54744f58e04f0a68483015ca684bb2b7c910fa7f;p=flightgear.git Update the model manager after the event manager, so that model coordinates that were set relative to the aircraft's position are picked up before the view update rather than the next cycle. This avoids ugly fluttering of "passengers" at higher speed. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 8d1baa707..adf44f242 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -177,7 +177,6 @@ void fgUpdateTimeDepCalcs() { // do nothing, fdm isn't inited yet } - globals->get_model_mgr()->update(delta_time_sec); globals->get_aircraft_model()->update(delta_time_sec); // Update solar system @@ -538,6 +537,10 @@ static void fgMainLoop( void ) { // run Nasal's settimer() loops right before the view manager globals->get_event_mgr()->update(delta_time_sec); + // pick up model coordidnates that Nasal code may have set relative to the + // aircraft's + globals->get_model_mgr()->update(delta_time_sec); + // update the view angle as late as possible, but before sound calculations globals->get_viewmgr()->update(delta_time_sec);