]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud_ladr.cxx
- remove unused classes lat_label and lon_label (it's the instr_label
[flightgear.git] / src / Cockpit / hud_ladr.cxx
index 8109429b81f0391853bdce76d0319e4386e918c6..e7673201539e1f2aeaebf9dad181700be6c7b822 100644 (file)
@@ -21,7 +21,7 @@ HudLadder::HudLadder(const SGPropertyNode *node) :
             node->getIntValue("height"),
             get_roll,
             get_pitch,                         // FIXME getter functions from cockpit.cxx
-            node->getBoolValue("working"),
+            node->getBoolValue("working", true),
             HUDS_RIGHT),
     width_units(int(node->getFloatValue("span_units"))),
     div_units(int(fabs(node->getFloatValue("division_units")))),
@@ -52,7 +52,7 @@ HudLadder::HudLadder(const SGPropertyNode *node) :
         factor = 640.0 / 55.0;
 
     SG_LOG(SG_INPUT, SG_INFO, "Done reading HudLadder instrument"
-            << node->getStringValue("name", "[NONE]"));
+            << node->getStringValue("name", "[unnamed]"));
 
     if (!width_units)
         width_units = 45;
@@ -62,11 +62,6 @@ HudLadder::HudLadder(const SGPropertyNode *node) :
 }
 
 
-HudLadder::~HudLadder()
-{
-}
-
-
 //
 //  Draws a climb ladder in the center of the HUD
 //
@@ -453,8 +448,8 @@ void HudLadder::draw(void)
         LineList.erase();
         StippleLineList.erase();
 
-        int last = FloatToInt(vmax) + 1;
-        int i = FloatToInt(vmin);
+        int last = float_to_int(vmax) + 1;
+        int i = float_to_int(vmin);
 
         if (!scr_hole) {
             x_end = half_span;