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")))),
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;
}
-HudLadder::~HudLadder()
-{
-}
-
-
//
// Draws a climb ladder in the center of the HUD
//
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;