]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewmgr.cxx
properly add librt when clock_gettime is used
[flightgear.git] / src / Main / viewmgr.cxx
index 5a978be63608ffa4634a553b405effd6dbcbc8d1..4e4417d34be8b8e4dbcb0d308bae1e3d84766bac 100644 (file)
@@ -42,9 +42,12 @@ FGViewMgr::FGViewMgr( void ) :
   inited(false),
   view_number(fgGetNode("/sim/current-view/view-number", true)),
   config_list(fgGetNode("/sim", true)->getChildren("view")),
-  current(0)
+  abs_viewer_position(SGVec3d::zeros()),
+  current(0),
+  current_view_orientation(SGQuatd::zeros()),
+  current_view_or_offset(SGQuatd::zeros()),
+  smgr(globals->get_soundmgr())
 {
-    smgr = globals->get_soundmgr();
 }
 
 // Destructor
@@ -55,7 +58,7 @@ void
 FGViewMgr::init ()
 {
   if (inited) {
-    SG_LOG(SG_GENERAL, SG_WARN, "duplicate init of view manager");
+    SG_LOG(SG_VIEW, SG_WARN, "duplicate init of view manager");
     return;
   }
   
@@ -285,7 +288,7 @@ FGViewMgr::unbind ()
   fgUntie("/sim/current-view/viewer-y-m");
   fgUntie("/sim/current-view/viewer-z-m");
 
-  list<const char*>::const_iterator it;
+  std::list<const char*>::const_iterator it;
   for (it = tied_props.begin(); it != tied_props.end(); it++){
     fgUntie(*it);
   }
@@ -353,7 +356,7 @@ FGViewMgr::update (double dt)
   abs_viewer_position = loop_view->getViewPosition();
 
   // update audio listener values
-  // set the viewer posotion in Cartesian coordinates in meters
+  // set the viewer position in Cartesian coordinates in meters
   smgr->set_position( abs_viewer_position, loop_view->getPosition() );
   smgr->set_orientation( current_view_orientation );