]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewer.cxx
Remove conditional compilation of ATCDCL
[flightgear.git] / src / Main / viewer.cxx
index a2baa48c4aeb8262e7910fc2d53a99be4ca1005e..05816f8bc6c407434dfef501a1b519dbf835d854 100644 (file)
 #endif
 
 #include <simgear/compiler.h>
+#include <cassert>
 
 #include "fg_props.hxx"
 
 #include <simgear/debug/logstream.hxx>
 #include <simgear/constants.h>
 #include <simgear/scene/model/placement.hxx>
-#include <simgear/math/vector.hxx>
 
 #include <Main/globals.hxx>
 #include <Scenery/scenery.hxx>
@@ -501,6 +501,8 @@ FGViewer::updateDampOutput(double dt)
     
     for (unsigned int i=0; i<3; ++i) {
       if (_dampFactor[i] <= 0.0) {
+        // axis is un-damped, set output to target directly
+        _dampOutput[i] = _dampTarget[i];
         continue;
       }
       
@@ -649,6 +651,8 @@ FGViewer::update (double dt)
     }
   }
   recalc();
-  _cameraGroup->update(toOsg(_absolute_view_pos), toOsg(mViewOrientation));
-  _cameraGroup->setCameraParameters(get_v_fov(), get_aspect_ratio());
+  if( fgGetBool( "/sim/rendering/draw-otw", true ) ) {
+    _cameraGroup->update(toOsg(_absolute_view_pos), toOsg(mViewOrientation));
+    _cameraGroup->setCameraParameters(get_v_fov(), get_aspect_ratio());
+  }
 }