]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/agradar.cxx
bind the sky disable cutoff distance to a property
[flightgear.git] / src / Instrumentation / agradar.cxx
index 0688a8ff8b97b79df3849663848a2d80fb42f1a0..772fd682a674bdcd3ad1069dffe4623fffd169ba 100644 (file)
@@ -189,7 +189,6 @@ agRadar::setUserVec(double az, double el)
     float yaw   = _user_hdg_deg_node->getDoubleValue();
     float pitch = _user_pitch_deg_node->getDoubleValue();
     float roll  = _user_roll_deg_node->getDoubleValue();
-    int mode    = _radar_mode_control_node->getIntValue();
     double tilt = _Instrument->getDoubleValue("tilt");
     double trk  = _Instrument->getDoubleValue("trk");
     bool roll_stab   = _Instrument->getBoolValue("stabilisation/roll");
@@ -260,8 +259,7 @@ agRadar::update_terrain()
     double tilt = -2.5;
     bool roll_stab   = _rollStabNode->getBoolValue();
     bool pitch_stab  = _pitchStabNode->getBoolValue();
-    //string status = "";
-    const char* status;
+    const char* status = "";
     bool hdg_mkr = true;
 
     if (mode == 5){