]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewmgr.cxx
Fix line endings
[flightgear.git] / src / Main / viewmgr.cxx
index bc1c5452103578412d7c625ae0aed23b32591032..9d30d046ebc523eb3c90c5d2ebc56f19ccffad16 100644 (file)
 //
 // $Id$
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include <string.h>            // strcmp
 
 #include <plib/sg.h>
+#include <plib/ssg.h>
+
+#include <simgear/compiler.h>
+
+#include <Model/acmodel.hxx>
 
 #include "viewmgr.hxx"
 #include "fg_props.hxx"
@@ -724,6 +733,12 @@ FGViewMgr::setView (int newview )
   set_view( newview );
   // copy in view data
   copyToCurrent ();
+
+  // Copy the fdm's position into the SGLocation which is shared with
+  // some views ...
+  globals->get_aircraft_model()->update(0);
+  // Do the update ...
+  update(0);
 }