From 54744f58e04f0a68483015ca684bb2b7c910fa7f Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 19 Nov 2008 07:46:10 +0000 Subject: [PATCH] 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. --- src/Main/main.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5