]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewer.cxx
Various mods to allow querying for nearest airport (with optional ability to
[flightgear.git] / src / Main / viewer.cxx
index 282d6a9d0cc722af3619349819adb9d253ca97e4..ef142a1a0e09f2caf2bdf27b49c38941ecf20f28 100644 (file)
@@ -138,7 +138,7 @@ FGViewer::FGViewer( fgViewType Type, bool from_model, int from_model_index,
                     double heading_offset_deg, double pitch_offset_deg,
                     double roll_offset_deg, double fov_deg,
                     double target_x_offset_m, double target_y_offset_m,
-                    double target_z_offset_m, double near_m ):
+                    double target_z_offset_m, double near_m, bool internal ):
     _dirty(true),
     _lon_deg(0),
     _lat_deg(0),
@@ -162,6 +162,8 @@ FGViewer::FGViewer( fgViewType Type, bool from_model, int from_model_index,
     _at_model = at_model;
     _at_model_index = at_model_index;
 
+    _internal = internal;
+
     if (damp_roll > 0.0)
       _damp_roll = 1.0 / pow(10, fabs(damp_roll));
     if (damp_pitch > 0.0)
@@ -230,6 +232,12 @@ FGViewer::setType ( int type )
     _type = FG_LOOKAT;
 }
 
+void
+FGViewer::setInternal ( bool internal )
+{
+  _internal = internal;
+}
+
 void
 FGViewer::setLongitude_deg (double lon_deg)
 {